Skip to content

Commit 640b391

Browse files
feat: remove instead of pop insufficient-funds tx (#608)
* feat: remove instead of pop insufficient-funds tx * bump version * update * update
1 parent 833f904 commit 640b391

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

miner/worker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,8 +1234,9 @@ loop:
12341234
break loop
12351235

12361236
case (errors.Is(err, core.ErrInsufficientFunds) || errors.Is(errors.Unwrap(err), core.ErrInsufficientFunds)):
1237-
log.Trace("Skipping account with insufficient funds", "sender", from)
1237+
log.Trace("Skipping tx with insufficient funds", "sender", from, "tx", tx.Hash().String())
12381238
txs.Pop()
1239+
w.eth.TxPool().RemoveTx(tx.Hash(), true)
12391240

12401241
default:
12411242
// Strange error, discard the transaction and get the next in line (note, the

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
VersionMajor = 5 // Major version component of the current release
2626
VersionMinor = 1 // Minor version component of the current release
27-
VersionPatch = 8 // Patch version component of the current release
27+
VersionPatch = 9 // Patch version component of the current release
2828
VersionMeta = "mainnet" // Version metadata to append to the version string
2929
)
3030

0 commit comments

Comments
 (0)