File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/main/java/org/tron/core/db Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 5555import org .tron .core .exception .ItemNotFoundException ;
5656import org .tron .core .exception .RevokingStoreIllegalStateException ;
5757import org .tron .core .exception .TaposException ;
58+ import org .tron .core .exception .TooBigTransactionException ;
5859import org .tron .core .exception .UnLinkedBlockException ;
5960import org .tron .core .exception .ValidateBandwidthException ;
6061import org .tron .core .exception .ValidateScheduleException ;
@@ -708,9 +709,13 @@ public synchronized void pushBlock(final BlockCapsule block)
708709 applyBlock (newBlock );
709710 tmpDialog .commit ();
710711 } catch (RevokingStoreIllegalStateException e ) {
711- logger .debug (e .getMessage (), e );
712- }
712+ logger .error (e .getMessage (), e );
713+ } catch (Throwable throwable ) {
714+ logger .error (throwable .getMessage (), throwable );
715+ khaosDb .removeBlk (block .getBlockId ());
716+ throw throwable ;
713717 }
718+ }
714719 logger .info ("save block: " + newBlock );
715720 }
716721 }
You can’t perform that action at this time.
0 commit comments