Mapped testnet rpc

This commit is contained in:
julian merlo 2024-03-25 10:04:53 -03:00
parent 30c1f9d6b6
commit 33927a4b72
2 changed files with 7 additions and 4 deletions

View File

@ -202,7 +202,12 @@
"name": "wormchain",
"network": "testnet",
"chainId": 3104,
"rpcs": ["https://wormchain-testnet.jumpisolated.com"],
"rpcs": [
"https://gateway.testnet.xlabs.xyz",
"https://gateway-01.testnet.xlabs.xyz",
"https://gateway-02.testnet.xlabs.xyz",
"https://gateway-03.testnet.xlabs.xyz"
],
"timeout": 10000
}
}

View File

@ -7,7 +7,6 @@ const ID = "watch-wormchain-logs";
export class PollWormchain extends RunPollingJob {
protected readonly logger: winston.Logger;
private readonly metadataRepo: MetadataRepository<PollWormchainLogsMetadata>;
private readonly getWormchain: GetWormchainLogs;
private readonly blockRepo: WormchainRepository;
@ -51,7 +50,6 @@ export class PollWormchain extends RunPollingJob {
`[hasNext] PollWormchain: (${this.cfg.id}) Finished processing all blocks from ${this.cfg.fromBlock} to ${this.cfg.toBlock}`
);
}
return !hasFinished;
}
@ -84,7 +82,7 @@ export class PollWormchain extends RunPollingJob {
let fromBlock = this.blockHeightCursor
? this.blockHeightCursor + 1n
: this.cfg.fromBlock ?? latestBlockHeight;
// fromBlock is configured and is greater than current block height, then we allow to skip blocks.
// fromBlock is configured and is greater than current block height, then we allow to skip blocks
if (
this.blockHeightCursor &&
this.cfg.fromBlock &&