diff --git a/server/web3bcspider/services/pull_bcevent.js b/server/web3bcspider/services/pull_bcevent.js index a35f26e..5161537 100644 --- a/server/web3bcspider/services/pull_bcevent.js +++ b/server/web3bcspider/services/pull_bcevent.js @@ -54,11 +54,6 @@ class PullBcEvent extends BaseService { } } - getInstanceName() { - const instName = this.getNetId() + '.' + this.getContractByName() + '.' + this.getEventName(); - return instName; - } - async processEvents(events, fromBlock, toBlock) { this.progInfo['fromBlock'] = fromBlock; this.progInfo['toBlock'] = toBlock; @@ -213,6 +208,11 @@ class PullBcEvent extends BaseService { return this.eventConf['contract_name']; } + getInstanceName() { + const instName = this.getNetId() + '.' + this.getContractByName() + '.' + this.getEventName(); + return instName; + } + } module.exports = PullBcEvent;