use ref for new_from_parent; test that transactions don't leak to parent

This commit is contained in:
Anatoly Yakovenko
2019-02-17 13:14:34 -08:00
committed by Greg Fitzgerald
parent 8166925f04
commit 54dfe708c1
3 changed files with 8 additions and 7 deletions

View File

@ -363,7 +363,7 @@ impl Fullnode {
}
None => FullnodeReturnType::LeaderToLeaderRotation, // value doesn't matter here...
};
let tpu_bank = Arc::new(Bank::new_from_parent(self.bank.clone()));
let tpu_bank = Arc::new(Bank::new_from_parent(&self.bank));
self.node_services.tpu.switch_to_leader(
&tpu_bank,
PohServiceConfig::default(),