moved fee collection code to runtime

This commit is contained in:
Pankaj Garg
2019-02-21 13:37:08 -08:00
committed by Grimes
parent c142a82ae0
commit 5c9777970d
7 changed files with 176 additions and 129 deletions

View File

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