mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
header sync does not touch txhashset so no need to take a write lock on it (#990)
This commit is contained in:
parent
242b67182c
commit
77172057ff
1 changed files with 0 additions and 5 deletions
|
@ -152,11 +152,6 @@ pub fn sync_block_header(
|
|||
validate_header(&bh, &mut sync_ctx)?;
|
||||
add_block_header(bh, &mut sync_ctx)?;
|
||||
|
||||
// TODO - confirm this is needed during sync process (I don't see how it is)
|
||||
// we do not touch the txhashset when syncing headers
|
||||
// just taking the shared lock
|
||||
let _ = header_ctx.txhashset.write().unwrap();
|
||||
|
||||
// now update the header_head (if new header with most work) and the sync_head
|
||||
// (always)
|
||||
update_header_head(bh, &mut header_ctx)?;
|
||||
|
|
Loading…
Reference in a new issue