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