Skip to content

Commit a9109f4

Browse files
committed
resolve soliditynode dupexception
1 parent 0a9c357 commit a9109f4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/org/tron/core/db/Manager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,13 @@ public void pushVerifiedBlock(BlockCapsule block) throws ContractValidateExcepti
605605
TaposException, ValidateScheduleException, ReceiptCheckErrException,
606606
VMIllegalException, TooBigTransactionResultException {
607607
block.generatedByMyself = true;
608-
applyBlock(block);
608+
try (ISession tmpSession = revokingStore.buildSession()) {
609+
applyBlock(block);
610+
tmpSession.commit();
611+
} catch (Throwable throwable) {
612+
logger.error(throwable.getMessage(), throwable);
613+
throw throwable;
614+
}
609615
}
610616

611617
private void applyBlock(BlockCapsule block) throws ContractValidateException,

0 commit comments

Comments
 (0)