File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
framework/src/main/java/org/tron/core/db Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2119,8 +2119,10 @@ private void processTransactionTrigger(BlockCapsule newBlock) {
2119
2119
cumulativeLogCount += transactionInfo .getLogCount ();
2120
2120
}
2121
2121
} else {
2122
- logger .error ("PostBlockTrigger blockNum = {} has no transactions or {}." , newBlock .getNum (),
2123
- "the sizes of transactionInfoList and transactionCapsuleList are not equal" );
2122
+ if (newBlock .getNum () != 0 ) {
2123
+ logger .error ("PostBlockTrigger blockNum = {} has no transactions or {}." , newBlock .getNum (),
2124
+ "the sizes of transactionInfoList and transactionCapsuleList are not equal" );
2125
+ }
2124
2126
for (TransactionCapsule e : newBlock .getTransactions ()) {
2125
2127
postTransactionTrigger (e , newBlock );
2126
2128
}
You can’t perform that action at this time.
0 commit comments