Skip to content

Commit

Permalink
Update validator list on each keyblock
Browse files Browse the repository at this point in the history
  • Loading branch information
EmelyanenkoK authored Jun 4, 2024
1 parent 0301e9f commit f9b6d21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions validator/full-node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,10 @@ void FullNodeImpl::got_key_block_config(td::Ref<ConfigHolder> config) {
update_private_overlays();
}

if (keys == all_validators_) {
return;
}
// Let's turn off this optimization, since keyblocks are rare enough to update on each keyblock
// if (keys == all_validators_) {
// return;
// }

all_validators_ = keys;
sign_cert_by_ = l;
Expand Down

0 comments on commit f9b6d21

Please sign in to comment.