Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
handle errors in commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Sep 19, 2016
1 parent 63c7833 commit 9f65cc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ethcore/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ impl ClosedBlock {
pub fn lock(mut self) -> LockedBlock {
// finalize the changes made by the engine.
self.block.state.clear_snapshot();
self.block.state.commit();
if let Err(e) = self.block.state.commit() {
warn!("Error committing closed block's state: {:?}", e);
}

LockedBlock {
block: self.block,
Expand Down

0 comments on commit 9f65cc4

Please sign in to comment.