RPC: Add getFeeCalculatorForBlockhash method call (#8687) (#8698)

automerge
This commit is contained in:
mergify[bot]
2020-03-06 17:25:33 -08:00
committed by GitHub
parent 659aaafff6
commit ff4731cce2
9 changed files with 184 additions and 6 deletions

View File

@@ -137,6 +137,10 @@ impl SyncClient for BankClient {
Ok(self.bank.last_blockhash_with_fee_calculator())
}
fn get_fee_calculator_for_blockhash(&self, blockhash: &Hash) -> Result<Option<FeeCalculator>> {
Ok(self.bank.get_fee_calculator(blockhash))
}
fn get_fee_rate_governor(&self) -> Result<FeeRateGovernor> {
Ok(self.bank.get_fee_rate_governor().clone())
}