This commit is contained in:
aozhiwei 2022-02-17 11:36:22 +08:00
parent a739057557
commit aefb48be3d
2 changed files with 7 additions and 1 deletions

View File

@ -159,6 +159,7 @@ class ContractExecutor {
utils.jsonEncode(this.getLogData()),
utils.jsonEncode(result),
currBlockNumber);
const blockNumber = result['blockNumber'];
await this.onSyncSuccess(this.syncLogClass, result);
} catch (err) {
await dblog.addLog(

View File

@ -323,7 +323,12 @@ class BoxOrder {
}
async suspend(logClass, reason) {
//挂起等待人工处理
/*
挂起等待人工处理
为啥不抛出异常是因为
如果在调用接口的外部try catch的话那么挂起操作产生的异常会被吞噬,这样非常危险!!!
挂起的操作现在为无限等待不受外部try catch影响
*/
try {
log.warning(util.format('%s suspend orderDb:%s reason:%s',
logClass,