mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
txhashset extension error was being silently dropped (#1228)
This commit is contained in:
parent
6f296005d0
commit
5c142864ff
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ pub fn process_block(b: &Block, ctx: &mut BlockContext) -> Result<Option<Tip>, E
|
||||||
|
|
||||||
// start a chain extension unit of work dependent on the success of the
|
// start a chain extension unit of work dependent on the success of the
|
||||||
// internal validation and saving operations
|
// 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
|
// First we rewind the txhashset extension if necessary
|
||||||
// to put it into a consistent state for validating the block.
|
// 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.
|
// 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<Option<Tip>, E
|
||||||
extension.force_rollback();
|
extension.force_rollback();
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
});
|
})?;
|
||||||
|
|
||||||
trace!(
|
trace!(
|
||||||
LOGGER,
|
LOGGER,
|
||||||
|
|
Loading…
Reference in a new issue