Synchronize BlockhashQueue and RecentBlockhashes sysvar update

This commit is contained in:
Trent Nelson 2020-07-13 14:56:01 -06:00 committed by mergify[bot]
parent 9cc379af6c
commit 5357ff6d60
1 changed files with 1 additions and 0 deletions

View File

@ -1258,6 +1258,7 @@ impl Bank {
let current_tick_height = self.tick_height.fetch_add(1, Ordering::Relaxed) as u64;
if self.is_block_boundary(current_tick_height + 1) {
w_blockhash_queue.register_hash(hash, &self.fee_calculator);
self.update_recent_blockhashes_locked(&w_blockhash_queue);
}
}