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

@@ -72,6 +72,10 @@ pub trait SyncClient {
commitment_config: CommitmentConfig,
) -> Result<(Hash, FeeCalculator)>;
/// Get `Some(FeeCalculator)` associated with `blockhash` if it is still in
/// the BlockhashQueue`, otherwise `None`
fn get_fee_calculator_for_blockhash(&self, blockhash: &Hash) -> Result<Option<FeeCalculator>>;
/// Get recent fee rate governor
fn get_fee_rate_governor(&self) -> Result<FeeRateGovernor>;