Skip to content

Commit

Permalink
Correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Apr 3, 2024
1 parent 68148eb commit 78c6de1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4313,8 +4313,8 @@ struct controller_impl {
}
}

// This is only used during Savanna transition, which is a one-time occurrance
// and the number of Transition block is small.
// This is only used during Savanna transition, which is a one-time occurrence,
// and it is only used by SHiP..
// It is OK to calculate from Savanna Genesis block for each Transition block.
std::optional<finality_data_t> get_transition_block_finality_data(const block_state_legacy_ptr& head) const {
fork_database_legacy_t::branch_t legacy_branch;
Expand All @@ -4331,7 +4331,7 @@ struct controller_impl {
// of receiving accepted_block signal. That is before
// the call to log_irreversible where root() is updated.
// Search both root and legacy_branch for the first block having
// instant_finality_extension -- the the Savanna Genesis Block.
// instant_finality_extension -- the Savanna Genesis Block.
// Then start from the Savanna Genesis Block to create corresponding
// Savanna blocks.
if (legacy_root->header.contains_header_extension(instant_finality_extension::extension_id())) {
Expand Down

0 comments on commit 78c6de1

Please sign in to comment.