Commit be218a1
fix: geometric retry escalation to keep mempool replacement valid (#28)
The previous linear `100 + 20·N` schedule causes the new/old gas ratio
to fall below the 1.10 EIP-1559 mempool replacement floor around the
7th retry, silently triggering the `transaction-underpriced-multiplier`
50% bump path on top of the regular retry — effectively double-charging
each subsequent retry.
Geometric `1.20^N` keeps the retry/previous ratio at exactly 1.20 every
attempt, so replacement always passes by a 20% margin. Reduces redundant
retries during congestion and the resulting snowball cost.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3a93bdb commit be218a1
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| |||
0 commit comments