mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
feat(gas_oracle): implement median-based priority fee suggestion for Optimism (#16794)
This commit is contained in:
@@ -244,9 +244,8 @@ where
|
||||
}
|
||||
|
||||
async fn suggested_priority_fee(&self) -> Result<U256, Self::Error> {
|
||||
let base_tip = self.inner.eth_api.gas_oracle().suggest_tip_cap().await?;
|
||||
let min_tip = U256::from(self.inner.min_suggested_priority_fee);
|
||||
Ok(base_tip.max(min_tip))
|
||||
self.inner.eth_api.gas_oracle().op_suggest_tip_cap(min_tip).await.map_err(Into::into)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user