From a0965e1ebabd6399db77c50724b1fa0128025d5d Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 13 Jul 2020 14:56:01 -0600 Subject: [PATCH] Synchronize BlockhashQueue and RecentBlockhashes sysvar update (cherry picked from commit 5357ff6d60092dd6b754074c8423b81e88500628) --- runtime/src/bank.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 676013727e..4e85ef777c 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -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); } }