1
This commit is contained in:
parent
9abf256907
commit
a1ceed1995
@ -172,6 +172,7 @@ class PullBcEvent extends BaseService {
|
|||||||
const nowTime = utils.getUtcTime();
|
const nowTime = utils.getUtcTime();
|
||||||
const returnValues = event['returnValues'];
|
const returnValues = event['returnValues'];
|
||||||
const hashCode = await this.calcHashCode(utils.jsonEncode(event));
|
const hashCode = await this.calcHashCode(utils.jsonEncode(event));
|
||||||
|
const rawData = utils.jsonEncode(event);
|
||||||
const {err} = await dbpool.execBcEventConn(
|
const {err} = await dbpool.execBcEventConn(
|
||||||
app,
|
app,
|
||||||
'upsert',
|
'upsert',
|
||||||
@ -195,7 +196,7 @@ class PullBcEvent extends BaseService {
|
|||||||
['contract_address', this.getContractAddress()],
|
['contract_address', this.getContractAddress()],
|
||||||
['contract_name', this.getContractName()],
|
['contract_name', this.getContractName()],
|
||||||
['block_number', event['blockNumber']],
|
['block_number', event['blockNumber']],
|
||||||
['raw_data', utils.jsonEncode(event)],
|
['raw_data', rawData.length < 1024 * 1024 ? rawData : ''],
|
||||||
['return_values', utils.jsonEncode(returnValues)],
|
['return_values', utils.jsonEncode(returnValues)],
|
||||||
['createtime', utils.getUtcTime()],
|
['createtime', utils.getUtcTime()],
|
||||||
['modifytime', utils.getUtcTime()],
|
['modifytime', utils.getUtcTime()],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user