Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: base fee multiplier for resend transaction is too high #55

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/node/eth_sender/src/eth_tx_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl EthTxManager {

if tx.blob_sidecar.is_some() {
if time_in_mempool != 0 {
// for blob transactions on re-sending need to double all gas prices
// for transactions on re-sending need to add 0.1 gwei to prevent underprice replacement error
let previous_sent_tx = storage
.eth_sender_dal()
.get_last_sent_eth_tx(tx.id)
Expand All @@ -141,11 +141,11 @@ impl EthTxManager {
.unwrap();
return Ok(EthFee {
base_fee_per_gas: std::cmp::max(
previous_sent_tx.base_fee_per_gas * 2,
previous_sent_tx.base_fee_per_gas + 100000000,
base_fee_per_gas,
),
priority_fee_per_gas: std::cmp::max(
previous_sent_tx.priority_fee_per_gas * 2,
previous_sent_tx.priority_fee_per_gas + 100000000,
priority_fee_per_gas,
),
blob_base_fee_per_gas: std::cmp::max(
Expand Down
Loading