Skip to content

Commit

Permalink
Assert all executors produce the same state root and fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Jul 8, 2024
1 parent bc6c4d2 commit 7513612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/sc-consensus-nakamoto/src/block_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion crates/subcoin-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub fn new_node(config: SubcoinConfiguration) -> Result<NodeComponents, ServiceE
executor.clone(),
bitcoin_network,
task_manager.spawn_handle(),
&config,
config,
)?)
} else {
None
Expand Down

0 comments on commit 7513612

Please sign in to comment.