mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
fix: mutex dead lock between difficulty_iter and txhashset_write (#1617)
fix #1611
This commit is contained in:
parent
73ddd1d01d
commit
6ad54b9840
1 changed files with 1 additions and 1 deletions
|
@ -963,8 +963,8 @@ impl Chain {
|
|||
/// running backward. Specialized to return information pertaining to block
|
||||
/// difficulty calculation (timestamp and previous difficulties).
|
||||
pub fn difficulty_iter(&self) -> store::DifficultyIter {
|
||||
let head = self.head.lock().unwrap();
|
||||
let batch = self.store.batch().unwrap();
|
||||
let head = self.head.lock().unwrap();
|
||||
store::DifficultyIter::from(head.last_block_h, batch)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue