@@ -1310,23 +1310,23 @@ public TransactionInfo processTransaction(final TransactionCapsule trxCap, Block
13101310
13111311 if (Objects .nonNull (blockCap )) {
13121312 trace .setResult ();
1313+ if (trace .checkNeedRetry ()) {
1314+ String txId = Hex .toHexString (trxCap .getTransactionId ().getBytes ());
1315+ logger .info ("Retry for tx id: {}" , txId );
1316+ trace .init (blockCap , eventPluginLoaded );
1317+ trace .checkIsConstant ();
1318+ trace .exec ();
1319+ trace .setResult ();
1320+ logger .info ("Retry result when push:{}, for tx id: {}, tx resultCode in receipt: {}" ,
1321+ blockCap .hasWitnessSignature (), txId , trace .getReceipt ().getResult ());
1322+ }
13131323 if (blockCap .hasWitnessSignature ()) {
1314- if (trace .checkNeedRetry ()) {
1315- String txId = Hex .toHexString (trxCap .getTransactionId ().getBytes ());
1316- logger .info ("Retry for tx id: {}" , txId );
1317- trace .init (blockCap , eventPluginLoaded );
1318- trace .checkIsConstant ();
1319- trace .exec ();
1320- trace .setResult ();
1321- logger .info ("Retry result for tx id: {}, tx resultCode in receipt: {}" ,
1322- txId , trace .getReceipt ().getResult ());
1323- }
13241324 trace .check ();
13251325 }
13261326 }
13271327
13281328 trace .finalization ();
1329- if (Objects . nonNull ( blockCap ) && getDynamicPropertiesStore ().supportVM ()) {
1329+ if (getDynamicPropertiesStore ().supportVM ()) {
13301330 trxCap .setResult (trace .getTransactionContext ());
13311331 }
13321332 chainBaseManager .getTransactionStore ().put (trxCap .getTransactionId ().getBytes (), trxCap );
0 commit comments