File tree Expand file tree Collapse file tree
framework/src/main/java/org/tron/core/db Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2082,7 +2082,8 @@ private void processTransactionTrigger(BlockCapsule newBlock) {
20822082 List <TransactionCapsule > transactionCapsuleList = newBlock .getTransactions ();
20832083
20842084 // need to set eth compatible data from transactionInfoList
2085- if (EventPluginLoader .getInstance ().isTransactionLogTriggerEthCompatible ()) {
2085+ if (EventPluginLoader .getInstance ().isTransactionLogTriggerEthCompatible ()
2086+ && newBlock .getNum () != 0 ) {
20862087 TransactionInfoList transactionInfoList = TransactionInfoList .newBuilder ().build ();
20872088 TransactionInfoList .Builder transactionInfoListBuilder = TransactionInfoList .newBuilder ();
20882089
@@ -2119,7 +2120,8 @@ private void processTransactionTrigger(BlockCapsule newBlock) {
21192120 cumulativeLogCount += transactionInfo .getLogCount ();
21202121 }
21212122 } else {
2122- logger .error ("PostBlockTrigger blockNum = {} has no transactions or {}." , newBlock .getNum (),
2123+ logger .error ("PostBlockTrigger blockNum = {} has no transactions or {}." ,
2124+ newBlock .getNum (),
21232125 "the sizes of transactionInfoList and transactionCapsuleList are not equal" );
21242126 for (TransactionCapsule e : newBlock .getTransactions ()) {
21252127 postTransactionTrigger (e , newBlock );
You can’t perform that action at this time.
0 commit comments