diff --git a/chain/src/pipe.rs b/chain/src/pipe.rs index 056a144c6..4249f53a8 100644 --- a/chain/src/pipe.rs +++ b/chain/src/pipe.rs @@ -268,7 +268,9 @@ fn validate_block( // apply all forked blocks, including this new one for h in hashes { - let fb = ctx.store.get_block(&h)?; + let fb = ctx.store.get_block(&h).map_err(|e| { + Error::StoreErr(e, format!("getting forked blocks")) + })?; ext.apply_block(&fb)?; } ext.apply_block(&b)?;