From 5c142864ffb1d8ba3ffb0704f6d4ec8e15b092f5 Mon Sep 17 00:00:00 2001 From: Antioch Peverell <30642645+antiochp@users.noreply.github.com> Date: Sun, 8 Jul 2018 12:42:21 +0100 Subject: [PATCH] txhashset extension error was being silently dropped (#1228) --- chain/src/pipe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/src/pipe.rs b/chain/src/pipe.rs index 82df9e194..f844c2dc3 100644 --- a/chain/src/pipe.rs +++ b/chain/src/pipe.rs @@ -102,7 +102,7 @@ pub fn process_block(b: &Block, ctx: &mut BlockContext) -> Result, E // start a chain extension unit of work dependent on the success of the // internal validation and saving operations - let _ = txhashset::extending(&mut txhashset, &mut batch, |mut extension| { + txhashset::extending(&mut txhashset, &mut batch, |mut extension| { // First we rewind the txhashset extension if necessary // to put it into a consistent state for validating the block. // We can skip this step if the previous header is the latest header we saw. @@ -115,7 +115,7 @@ pub fn process_block(b: &Block, ctx: &mut BlockContext) -> Result, E extension.force_rollback(); } Ok(()) - }); + })?; trace!( LOGGER,