This commit is contained in:
aozhiwei 2023-07-12 13:50:15 +08:00
parent 5592c7ac73
commit 73bf8ddaff
2 changed files with 7 additions and 3 deletions

View File

@ -63,8 +63,9 @@ class Erc721Refresher extends BaseService {
this.progInfo['pendingCount'] = 0;
this.progInfo['skipCount'] = 0;
} catch (err) {
log.error(logHead + err);
await utils.sleep(5000 + utils.randRange(1000, 3000));
utils.safeDumpErrStack(err);
log.error(logHead + err);
await utils.sleep(5000 + utils.randRange(1000, 3000));
}
}
@ -157,7 +158,7 @@ class Erc721Refresher extends BaseService {
],
[
['owner_address', bcutils.toNormalAddress(newOwner)],
['confirm_count', () => {
['!confirm_count', () => {
return 'confirm_count + 1';
}],
['confirm_block_number', blockNumber]

View File

@ -233,6 +233,9 @@ class PullBcEvent extends BaseService {
}
getInitBlock() {
if (!utils.isOnlineEnv()) {
return 30120896;
}
return this.eventConf['init_block'];
}