1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 11:12:16 +00:00

Fix null pointer error in validator group (#1271)

This commit is contained in:
SpyCheese 2024-10-14 09:42:52 +03:00 committed by GitHub
parent 8f55efbc01
commit 97398b7db0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,7 +189,7 @@ void ValidatorGroup::accept_block_candidate(validatorsession::BlockSourceInfo so
// Creator of the block sends broadcast to private block overlay unless candidate broadcast was sent
// Any node sends broadcast to custom overlays unless candidate broadcast was sent
int send_broadcast_mode = 0;
bool sent_candidate = sent_candidate_broadcasts_.contains(block->block_id());
bool sent_candidate = sent_candidate_broadcasts_.contains(next_block_id);
if (source_info.source.compute_short_id() == local_id_) {
send_broadcast_mode |= fullnode::FullNode::broadcast_mode_public;
if (!sent_candidate) {