Skip to content

Commit

Permalink
1932 fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Jul 2, 2024
1 parent 852da6b commit 5c75059
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions monitoring/OptimizerAgent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ uint64_t OptimizerAgent::getPriorityLeaderForBlock( block_id& _blockID ) {
// note that the priorityLeader variable goes from 0 to N-1
// Thats why we need to subtract one because schain index goes from 1 to N


auto doOptimized = doOptimizedConsensus( _blockID, lastBlockStampS );
if ( doOptimized ) {
if ( doOptimizedConsensus( _blockID, lastBlockStampS ) ) {
priorityLeader =
( uint64_t ) getSchain()->getOptimizerAgent()->getPreviousWinner( _blockID ) - 1;
} else {
Expand Down

0 comments on commit 5c75059

Please sign in to comment.