From 77172057ffcbef909c2d7df46b47676786d99446 Mon Sep 17 00:00:00 2001 From: Antioch Peverell <30642645+antiochp@users.noreply.github.com> Date: Sat, 21 Apr 2018 15:15:01 -0400 Subject: [PATCH] header sync does not touch txhashset so no need to take a write lock on it (#990) --- chain/src/pipe.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/chain/src/pipe.rs b/chain/src/pipe.rs index 3200dd7e..da381b47 100644 --- a/chain/src/pipe.rs +++ b/chain/src/pipe.rs @@ -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)?;