1
This commit is contained in:
parent
5592c7ac73
commit
73bf8ddaff
@ -63,6 +63,7 @@ class Erc721Refresher extends BaseService {
|
|||||||
this.progInfo['pendingCount'] = 0;
|
this.progInfo['pendingCount'] = 0;
|
||||||
this.progInfo['skipCount'] = 0;
|
this.progInfo['skipCount'] = 0;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
utils.safeDumpErrStack(err);
|
||||||
log.error(logHead + err);
|
log.error(logHead + err);
|
||||||
await utils.sleep(5000 + utils.randRange(1000, 3000));
|
await utils.sleep(5000 + utils.randRange(1000, 3000));
|
||||||
}
|
}
|
||||||
@ -157,7 +158,7 @@ class Erc721Refresher extends BaseService {
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
['owner_address', bcutils.toNormalAddress(newOwner)],
|
['owner_address', bcutils.toNormalAddress(newOwner)],
|
||||||
['confirm_count', () => {
|
['!confirm_count', () => {
|
||||||
return 'confirm_count + 1';
|
return 'confirm_count + 1';
|
||||||
}],
|
}],
|
||||||
['confirm_block_number', blockNumber]
|
['confirm_block_number', blockNumber]
|
||||||
|
@ -233,6 +233,9 @@ class PullBcEvent extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getInitBlock() {
|
getInitBlock() {
|
||||||
|
if (!utils.isOnlineEnv()) {
|
||||||
|
return 30120896;
|
||||||
|
}
|
||||||
return this.eventConf['init_block'];
|
return this.eventConf['init_block'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user