mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Explicit error when a forked block can't be retrieved
This commit is contained in:
parent
6ba22e71c8
commit
8c718443ef
1 changed files with 3 additions and 1 deletions
|
@ -268,7 +268,9 @@ fn validate_block(
|
||||||
|
|
||||||
// apply all forked blocks, including this new one
|
// apply all forked blocks, including this new one
|
||||||
for h in hashes {
|
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(&fb)?;
|
||||||
}
|
}
|
||||||
ext.apply_block(&b)?;
|
ext.apply_block(&b)?;
|
||||||
|
|
Loading…
Reference in a new issue