Skip to content

Commit 97398b7

Browse files
authored
Fix null pointer error in validator group (#1271)
1 parent 8f55efb commit 97398b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator/validator-group.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void ValidatorGroup::accept_block_candidate(validatorsession::BlockSourceInfo so
189189
// Creator of the block sends broadcast to private block overlay unless candidate broadcast was sent
190190
// Any node sends broadcast to custom overlays unless candidate broadcast was sent
191191
int send_broadcast_mode = 0;
192-
bool sent_candidate = sent_candidate_broadcasts_.contains(block->block_id());
192+
bool sent_candidate = sent_candidate_broadcasts_.contains(next_block_id);
193193
if (source_info.source.compute_short_id() == local_id_) {
194194
send_broadcast_mode |= fullnode::FullNode::broadcast_mode_public;
195195
if (!sent_candidate) {

0 commit comments

Comments
 (0)