Skip to content

Commit

Permalink
GH-2057 minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Mar 26, 2024
1 parent f576797 commit 1056702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/chain/block_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ block_state_ptr block_state::create_if_genesis_block(const block_state_legacy& b
result.activated_protocol_features = bsp.activated_protocol_features;
result.core = finality_core::create_core_for_genesis_block(bsp.block_num());

// Calculate Merkel tree root in Savanna way so that it is stored in Leaf Node when building block_state.
// Calculate Merkle tree root in Savanna way so that it is stored in Leaf Node when building block_state.
auto action_mroot_svnn = calculate_merkle(*bsp.action_receipt_digests);
// built leaf_node and validation_tree
valid_t::finality_leaf_node_t leaf_node {
Expand Down
4 changes: 2 additions & 2 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1478,8 +1478,8 @@ struct controller_impl {
}
}
});
apply<void>(chain_head, [&](const auto& head) {
replay_push_block<std::decay_t<decltype(head)>>( next, controller::block_status::irreversible );
apply<void>(chain_head, [&]<typename T>(const T&) {
replay_push_block<T>( next, controller::block_status::irreversible );
});
apply_l<void>(chain_head, [&](const auto& head) { // chain_head is updated via replay_push_block
assert(!next->is_proper_svnn_block());
Expand Down

0 comments on commit 1056702

Please sign in to comment.