mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
deadlock risk in check_orphans called from txhashset_write (#3156)
This commit is contained in:
parent
52ea906b61
commit
3a333ae00f
1 changed files with 1 additions and 4 deletions
|
@ -441,7 +441,7 @@ impl Chain {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Check for orphans, once a block is successfully added
|
/// Check for orphans, once a block is successfully added
|
||||||
pub fn check_orphans(&self, mut height: u64) {
|
fn check_orphans(&self, mut height: u64) {
|
||||||
let initial_height = height;
|
let initial_height = height;
|
||||||
|
|
||||||
// Is there an orphan in our orphans that we can now process?
|
// Is there an orphan in our orphans that we can now process?
|
||||||
|
@ -999,9 +999,6 @@ impl Chain {
|
||||||
|
|
||||||
debug!("txhashset_write: replaced our txhashset with the new one");
|
debug!("txhashset_write: replaced our txhashset with the new one");
|
||||||
|
|
||||||
// Check for any orphan blocks and process them based on the new chain state.
|
|
||||||
self.check_orphans(header.height + 1);
|
|
||||||
|
|
||||||
status.on_done();
|
status.on_done();
|
||||||
|
|
||||||
Ok(false)
|
Ok(false)
|
||||||
|
|
Loading…
Reference in a new issue