diff --git a/chain/src/chain_controller.rs b/chain/src/chain_controller.rs index 89cfb681465..fa3e6c10d11 100644 --- a/chain/src/chain_controller.rs +++ b/chain/src/chain_controller.rs @@ -47,7 +47,7 @@ impl ChainController { pub fn is_verifying_unverified_blocks_on_startup(&self) -> bool { self.is_verifying_unverified_blocks_on_startup - .load(std::sync::atomic::Ordering::Relaxed) + .load(std::sync::atomic::Ordering::Acquire) } pub fn asynchronous_process_remote_block(&self, remote_block: RemoteBlock) { diff --git a/chain/src/init_load_unverified.rs b/chain/src/init_load_unverified.rs index af85925197c..4d02b7dfc22 100644 --- a/chain/src/init_load_unverified.rs +++ b/chain/src/init_load_unverified.rs @@ -86,7 +86,7 @@ impl InitLoadUnverified { self.find_and_verify_unverified_blocks(); self.is_verifying_unverified_blocks_on_startup - .store(false, std::sync::atomic::Ordering::Relaxed); + .store(false, std::sync::atomic::Ordering::Release); } fn find_and_verify_unverified_blocks(&self) {