copy bank for TPU

This commit is contained in:
Rob Walker
2019-01-29 11:18:56 -08:00
committed by Grimes
parent 3e1a926aa6
commit 1f9ab7f58f
4 changed files with 29 additions and 2 deletions

View File

@ -278,7 +278,7 @@ impl Fullnode {
};
let tpu = Tpu::new(
&bank,
&Arc::new(bank.copy_for_tpu()),
Default::default(),
node.sockets
.tpu
@ -360,7 +360,7 @@ impl Fullnode {
let (to_validator_sender, to_validator_receiver) = channel();
self.role_notifiers.1 = to_validator_receiver;
self.node_services.tpu.switch_to_leader(
&self.bank,
&Arc::new(self.bank.copy_for_tpu()),
Default::default(),
self.tpu_sockets
.iter()