Retry a fee refusal at the fee the network charges now (0.5.10) #68
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/plainwallet!68
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/current-fees"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #67. A refused transaction came back at only 25% over its last fee. If network fees had risen past that, the retry was still too cheap.
Now, on a fee refusal Plain Wallet asks the RPC for current fees (
estimateFeesPerGas). The new fee is shown and approved before anything is signed:replace(replacement transaction underpriced/replacement fee too low): every fee field becomes the higher of current fees and the last try +25%.fees(max fee per gas less than block base fee,transaction underpriced,fee too low): current fees, never lower than the last try. The note reads "Network fees went up, and the network refused the old fee. This is what it charges now."lib/chain.ts:feeRefusal()(which kind),raise()(pure, unit-tested) andrefee()(fetches current fees, thenraise).bump/underpricedare gone.Release 0.5.10. Adds
fastlane/metadata/android/*/changelogs/510.txtin all 24 store languages (≤406 chars) covering 0.5.7–0.5.10. Those three releases shipped without notes, which I missed.Tested
npm test(newraise/feeRefusalasserts),tsc,npm run build,node scripts/store-copy.mjs,scripts/releaseunittests (82 OK).max fee per gas less than block base fee→fees, re-offered 13 gwei, accepted.replace, re-offered 3 / 1.25 gwei, accepted, replaced in the pool.🤖 Generated with Claude Code