We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 307d267 commit 6798730Copy full SHA for 6798730
src/replay/consensus/core.zig
@@ -1453,9 +1453,13 @@ fn generateVoteTx(
1453
);
1454
defer vote_ix.deinit(allocator);
1455
1456
- const blockhash = slot_info.state.hash.readCopy() orelse {
1457
- logger.warn().logf("Blockhash is null for slot {}", .{last_voted_slot});
1458
- return .failed;
+ const blockhash = blk: {
+ const bhq, var bhq_lg = slot_info.state.blockhash_queue.readWithLock();
+ defer bhq_lg.unlock();
1459
+ break :blk bhq.last_hash orelse {
1460
+ logger.warn().logf("Blockhash is null for slot {}", .{last_voted_slot});
1461
+ return .failed;
1462
+ };
1463
};
1464
1465
const vote_tx_msg = try sig.core.transaction.Message.initCompile(
0 commit comments