Synchronize BlockhashQueue and RecentBlockhashes sysvar update

(cherry picked from commit 5357ff6d60)
This commit is contained in:
Trent Nelson
2020-07-13 14:56:01 -06:00
committed by Trent Nelson
parent 7ca65341e6
commit a0965e1eba

View File

@ -1116,6 +1116,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);
}
}