copy a new bank
This commit is contained in:
committed by
Greg Fitzgerald
parent
64f1d93cc3
commit
8166925f04
@ -363,10 +363,9 @@ impl Fullnode {
|
||||
}
|
||||
None => FullnodeReturnType::LeaderToLeaderRotation, // value doesn't matter here...
|
||||
};
|
||||
let mut new: Arc<Bank> = Arc::new(Bank::new_from_parent(self.bank.clone()));
|
||||
std::mem::swap(&mut self.bank, &mut new);
|
||||
let tpu_bank = Arc::new(Bank::new_from_parent(self.bank.clone()));
|
||||
self.node_services.tpu.switch_to_leader(
|
||||
&self.bank,
|
||||
&tpu_bank,
|
||||
PohServiceConfig::default(),
|
||||
self.tpu_sockets
|
||||
.iter()
|
||||
|
Reference in New Issue
Block a user