Skip to content

Commit

Permalink
Merge pull request #744 from tronprotocol/fix_applyBlock_khaos_remove…
Browse files Browse the repository at this point in the history
…_on_master

Fix apply block khaos remove on master
  • Loading branch information
nanfengpo authored May 18, 2018
2 parents c964a11 + a6216c7 commit ad2e588
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/org/tron/core/db/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import org.tron.core.exception.ItemNotFoundException;
import org.tron.core.exception.RevokingStoreIllegalStateException;
import org.tron.core.exception.TaposException;
import org.tron.core.exception.TooBigTransactionException;
import org.tron.core.exception.UnLinkedBlockException;
import org.tron.core.exception.ValidateBandwidthException;
import org.tron.core.exception.ValidateScheduleException;
Expand Down Expand Up @@ -708,9 +709,13 @@ public synchronized void pushBlock(final BlockCapsule block)
applyBlock(newBlock);
tmpDialog.commit();
} catch (RevokingStoreIllegalStateException e) {
logger.debug(e.getMessage(), e);
}
logger.error(e.getMessage(), e);
} catch (Throwable throwable) {
logger.error(throwable.getMessage(), throwable);
khaosDb.removeBlk(block.getBlockId());
throw throwable;
}
}
logger.info("save block: " + newBlock);
}
}
Expand Down

0 comments on commit ad2e588

Please sign in to comment.