File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const TIMEOUT = 0.5 * 1000;
28
28
export const RPCS_BY_CHAIN : { [ key in Environment ] : { [ key in ChainName ] ?: string } } = {
29
29
[ 'mainnet' ] : {
30
30
ethereum : process . env . ETH_RPC ,
31
- bsc : process . env . BSC_RPC || 'https://rpc.ankr .com/bsc ' ,
31
+ bsc : process . env . BSC_RPC || 'https://bsc.publicnode .com' ,
32
32
polygon : process . env . POLYGON_RPC || 'https://rpc.ankr.com/polygon' ,
33
33
avalanche : process . env . AVALANCHE_RPC || 'https://rpc.ankr.com/avalanche' ,
34
34
oasis : process . env . OASIS_RPC || 'https://emerald.oasis.dev' ,
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export class Watcher {
56
56
let retry = 0 ;
57
57
while ( true ) {
58
58
try {
59
+ this . logger . debug ( `fromBlock = ${ fromBlock } , toBlock = ${ toBlock } ` ) ;
59
60
if ( fromBlock !== null && toBlock !== null && fromBlock <= toBlock ) {
60
61
// fetch logs for the block range, inclusive of toBlock
61
62
toBlock = Math . min ( fromBlock + this . maximumBatchSize - 1 , toBlock ) ;
@@ -67,6 +68,7 @@ export class Watcher {
67
68
try {
68
69
this . logger . info ( 'fetching finalized block' ) ;
69
70
toBlock = await this . getFinalizedBlockNumber ( ) ;
71
+ this . logger . debug ( `finalized block = ${ toBlock } ` ) ;
70
72
if ( fromBlock === null ) {
71
73
// handle first loop on a fresh chain without initial block set
72
74
fromBlock = toBlock ;
You can’t perform that action at this time.
0 commit comments