Skip to content

Commit

Permalink
[master] Proper check for receiving announce msg early (#3864)
Browse files Browse the repository at this point in the history
* Proper check for receiving announce msg early

* Proper check for receiving announce msg early (2)

---------

Co-authored-by: bzawisto <bartosz@zilliqa.com>
  • Loading branch information
bzawisto and bzawisto committed Nov 6, 2023
1 parent fafa172 commit 58ad277
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libDirectoryService/FinalBlockPreProcessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,9 @@ void DirectoryService::RunConsensusOnFinalBlock() {
}

// We've been already here, don't do the same thing again in this round
if (m_mediator.m_node->m_txn_distribute_window_open) {
if (m_state == FINALBLOCK_CONSENSUS) {
LOG_GENERAL(WARNING,
"Preventing from running the same round of consensus again");
return;
}

Expand Down

0 comments on commit 58ad277

Please sign in to comment.