From 78c6de198a47349a4c80ca87db07032300c0d35e Mon Sep 17 00:00:00 2001 From: Lin Huang Date: Wed, 3 Apr 2024 17:43:16 -0400 Subject: [PATCH] Correct comments --- libraries/chain/controller.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/chain/controller.cpp b/libraries/chain/controller.cpp index 0c73e4fa22..3a7a2c51c6 100644 --- a/libraries/chain/controller.cpp +++ b/libraries/chain/controller.cpp @@ -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 get_transition_block_finality_data(const block_state_legacy_ptr& head) const { fork_database_legacy_t::branch_t legacy_branch; @@ -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())) {