Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix gas_price in light client
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Jan 9, 2018
1 parent b96897e commit 4a6510b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/src/v1/impls/light/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl<T: LightChainClient + 'static> Eth for EthClient<T> {

fn gas_price(&self) -> Result<RpcU256> {
Ok(self.cache.lock().gas_price_corpus()
.and_then(|c| c.median().cloned())
.and_then(|c| c.percentile(self.gas_price_percentile).cloned())
.map(RpcU256::from)
.unwrap_or_else(Default::default))
}
Expand Down

0 comments on commit 4a6510b

Please sign in to comment.