minor plugin fixes due to interface changes and config updates

This commit is contained in:
Gabriel Zimmermann 2023-02-01 17:32:38 -03:00 committed by Joe Howarth
parent 06250cc3c4
commit 9fc1c410fe
3 changed files with 15 additions and 3 deletions

View File

@ -7,6 +7,10 @@
"host": "redis-master.default.svc.cluster.local",
"tls": true
},
"defaultWorkflowOptions": {
"maxRetries": 3
},
"wormholeRpc": "https://wormhole-v2-testnet-api.certus.one",
"readinessPort": 2000,
"numGuardians": 1,
"supportedChains": [

View File

@ -1,7 +1,15 @@
{
"mode": "BOTH",
"logLevel": "debug",
"storeType": "InMemory",
"logLevel": "info",
"storeType": "Redis",
"redis": {
"port": 6379,
"host": "localhost"
},
"defaultWorkflowOptions": {
"maxRetries": 3
},
"wormholeRpc": "https://wormhole-v2-testnet-api.certus.one",
"readinessPort": 2000,
"numGuardians": 1,
"supportedChains": [

View File

@ -256,7 +256,7 @@ export class GenericRelayerPlugin implements Plugin<WorkflowPayload> {
coreRelayerVaa: ParsedVaaWithBytes,
db: StagingAreaKeyLock,
_providers: Providers
): Promise<{ workflowData?: WorkflowPayload }> {
): Promise<{ workflowData: WorkflowPayload } | undefined> {
this.logger.debug(
`Consuming event from chain ${
coreRelayerVaa.emitterChain