deadlock risk in check_orphans called from txhashset_write (#3156)

This commit is contained in:
Antioch Peverell 2019-12-05 10:32:01 +00:00 committed by GitHub
parent 52ea906b61
commit 3a333ae00f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -441,7 +441,7 @@ impl Chain {
}
/// 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;
// 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");
// Check for any orphan blocks and process them based on the new chain state.
self.check_orphans(header.height + 1);
status.on_done();
Ok(false)