From 7513612b5eb7f30ad71b2c4012878bb1657ff110 Mon Sep 17 00:00:00 2001 From: Liu-Cheng Xu Date: Tue, 9 Jul 2024 00:26:27 +0800 Subject: [PATCH] Assert all executors produce the same state root and fix clippy --- crates/sc-consensus-nakamoto/src/block_executor.rs | 3 +-- crates/subcoin-service/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/sc-consensus-nakamoto/src/block_executor.rs b/crates/sc-consensus-nakamoto/src/block_executor.rs index 8f01e271..7625b8dc 100644 --- a/crates/sc-consensus-nakamoto/src/block_executor.rs +++ b/crates/sc-consensus-nakamoto/src/block_executor.rs @@ -671,8 +671,7 @@ where .disk_runtime_block_executor .execute_block(parent_hash, block)?; - // FIXME - // assert_eq!(in_memory_state_root, state_root); + assert_eq!(in_memory_state_root, state_root); let in_memory_runtime_total = in_memory_runtime_exec_info.total(); let in_memory_off_runtime_total = in_memory_off_runtime_exec_info.total(); diff --git a/crates/subcoin-service/src/lib.rs b/crates/subcoin-service/src/lib.rs index f06fe305..11780a77 100644 --- a/crates/subcoin-service/src/lib.rs +++ b/crates/subcoin-service/src/lib.rs @@ -274,7 +274,7 @@ pub fn new_node(config: SubcoinConfiguration) -> Result