diff --git a/core/src/banking_stage.rs b/core/src/banking_stage.rs index 52d4e787d0009b..0cf3cace2f82c0 100644 --- a/core/src/banking_stage.rs +++ b/core/src/banking_stage.rs @@ -1015,7 +1015,7 @@ mod tests { replay_vote_sender, None, Arc::new(ConnectionCache::new("connection_cache_test")), - bank_forks, + bank_forks.clone(), // keep a local-copy of bank-forks so worker threads do not lose weak access to bank-forks &Arc::new(PrioritizationFeeCache::new(0u64)), );