Make lamports_per_signature dynamic based on cluster load (#4562)

* Make lamports_per_signature dynamic based on cluster load

* Move transaction-fees.md to implemented
This commit is contained in:
Michael Vines
2019-06-10 22:18:32 -07:00
committed by GitHub
parent a4035a3c65
commit e4d8ea11ac
14 changed files with 391 additions and 115 deletions

View File

@ -107,9 +107,7 @@ impl SyncClient for BankClient {
}
fn get_recent_blockhash(&self) -> Result<(Hash, FeeCalculator)> {
let last_blockhash = self.bank.last_blockhash();
let fee_calculator = self.bank.fee_calculator.clone();
Ok((last_blockhash, fee_calculator))
Ok(self.bank.last_blockhash_with_fee_calculator())
}
fn get_transaction_count(&self) -> Result<u64> {