File tree 1 file changed +4
-2
lines changed
framework/src/main/java/org/tron/core/db 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2082,7 +2082,8 @@ private void processTransactionTrigger(BlockCapsule newBlock) {
2082
2082
List <TransactionCapsule > transactionCapsuleList = newBlock .getTransactions ();
2083
2083
2084
2084
// need to set eth compatible data from transactionInfoList
2085
- if (EventPluginLoader .getInstance ().isTransactionLogTriggerEthCompatible ()) {
2085
+ if (EventPluginLoader .getInstance ().isTransactionLogTriggerEthCompatible ()
2086
+ && newBlock .getNum () != 0 ) {
2086
2087
TransactionInfoList transactionInfoList = TransactionInfoList .newBuilder ().build ();
2087
2088
TransactionInfoList .Builder transactionInfoListBuilder = TransactionInfoList .newBuilder ();
2088
2089
@@ -2119,7 +2120,8 @@ private void processTransactionTrigger(BlockCapsule newBlock) {
2119
2120
cumulativeLogCount += transactionInfo .getLogCount ();
2120
2121
}
2121
2122
} else {
2122
- logger .error ("PostBlockTrigger blockNum = {} has no transactions or {}." , newBlock .getNum (),
2123
+ logger .error ("PostBlockTrigger blockNum = {} has no transactions or {}." ,
2124
+ newBlock .getNum (),
2123
2125
"the sizes of transactionInfoList and transactionCapsuleList are not equal" );
2124
2126
for (TransactionCapsule e : newBlock .getTransactions ()) {
2125
2127
postTransactionTrigger (e , newBlock );
You can’t perform that action at this time.
0 commit comments