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 55
55
import org .tron .core .exception .ItemNotFoundException ;
56
56
import org .tron .core .exception .RevokingStoreIllegalStateException ;
57
57
import org .tron .core .exception .TaposException ;
58
+ import org .tron .core .exception .TooBigTransactionException ;
58
59
import org .tron .core .exception .UnLinkedBlockException ;
59
60
import org .tron .core .exception .ValidateBandwidthException ;
60
61
import org .tron .core .exception .ValidateScheduleException ;
@@ -708,9 +709,13 @@ public synchronized void pushBlock(final BlockCapsule block)
708
709
applyBlock (newBlock );
709
710
tmpDialog .commit ();
710
711
} 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 ;
713
717
}
718
+ }
714
719
logger .info ("save block: " + newBlock );
715
720
}
716
721
}
You can’t perform that action at this time.
0 commit comments