We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffbf42 commit 650d42fCopy full SHA for 650d42f
core/node/eth_sender/src/eth_fees_oracle.rs
@@ -82,7 +82,9 @@ impl GasAdjusterFeesOracle {
82
previous_sent_tx: &Option<TxHistory>,
83
time_in_mempool: u32,
84
) -> Result<EthFees, EthSenderError> {
85
- let mut base_fee_per_gas = self.gas_adjuster.get_base_fee(time_in_mempool);
+ // cap it at 6h to not allow nearly infinite values when a tx is stuck for a long time
86
+ let capped_time_in_mempool = min(time_in_mempool, 1800);
87
+ let mut base_fee_per_gas = self.gas_adjuster.get_base_fee(capped_time_in_mempool);
88
self.assert_fee_is_not_zero(base_fee_per_gas, "base");
89
if let Some(previous_sent_tx) = previous_sent_tx {
90
self.verify_base_fee_not_too_low_on_resend(
0 commit comments