This commit is contained in:
aozhiwei 2023-07-09 18:50:48 +08:00
parent 963fd8a58a
commit e105392a3c
4 changed files with 16 additions and 17 deletions

View File

@ -19,24 +19,23 @@ class BcRefresh extends BaseTask {
}
async initNet(net) {
const events = [];
net['Events'].forEach
(
(eventConf) => {
const event = {
'eventConf': eventConf,
{
const events = [];
net['refresh_erc721'].forEach
(
(conf721) => {
const event = {
'conf721': conf721,
'progressInfo': {
'pullCount': 0,
'eventCount': 0,
'fromBlock': 0,
'toBlock': 0,
'currBlock': 0
'confirmedCount': 0,
'pendingCount': 0,
}
};
events.push(event);
this.createPullBcEventService(net, event);
});
this.outputProgressInfo(net, events);
};
events.push(event);
this.createPullBcEventService(net, event);
});
this.outputErc721ProgressInfo(net, events);
}
}
createPullBcEventService(net, event) {
@ -48,7 +47,7 @@ class BcRefresh extends BaseTask {
return pullBcEventService;
}
async outputProgressInfo(net, events) {
async outputErc721ProgressInfo(net, events) {
let count = 0;
while (true) {
log.info('----------------------------------------------------------');