1
This commit is contained in:
parent
a4854c9bbc
commit
0a2f9c77d9
@ -128,16 +128,21 @@ class PullBcEvent extends BaseService {
|
|||||||
const logHead = this.getInstanceName() + ' event_process.saveLastBlockNumber';
|
const logHead = this.getInstanceName() + ' event_process.saveLastBlockNumber';
|
||||||
while (true) {
|
while (true) {
|
||||||
const {err} = await this.conn.upsert(
|
const {err} = await this.conn.upsert(
|
||||||
't_parameter',
|
't_last_block',
|
||||||
[
|
[
|
||||||
['name', this.getBlockNumberDbName()]
|
['net_id', this.getNetId()],
|
||||||
|
['contract_address', this.getContractAddress()],
|
||||||
|
['event_name', this.getEventName()],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
['value', blockNumber],
|
['block_number', blockNumber],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
['name', this.getBlockNumberDbName()],
|
['net_id', this.getNetId()],
|
||||||
['value', blockNumber],
|
['contract_address', this.getContractAddress()],
|
||||||
|
['event_name', this.getEventName()],
|
||||||
|
['block_number', blockNumber],
|
||||||
|
['contract_name', this.getContractName()],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
if (!err) {
|
if (!err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user