This commit is contained in:
aozhiwei 2023-07-15 15:08:27 +08:00
parent 1688743a2e
commit 73d14ecc4b

View File

@ -103,7 +103,7 @@ class PullBcEvent extends BaseService {
this.lastBlockNumber = firstBlockNumber;
}
}
console.log(logHead, this.lastBlockNumber, this.bc.getCurrBlockNumber());
console.log(logHead, this.lastBlockNumber, this.bc.getCurrBlockNumber(), err, row, firstBlockNumber);
while (this.lastBlockNumber + 8 > this.bc.getCurrBlockNumber()) {
await utils.sleep(1000 + utils.randRange(500, 1500));
}
@ -218,7 +218,7 @@ class PullBcEvent extends BaseService {
}
getInitBlock() {
if (!utils.isOnlineEnv()) {
if (!utils.isOnlineEnv() && this.getNetId() == 421613) {
return 30120896;
}
return this.eventConf['init_block'];