Skip to content

Commit

Permalink
feat: remove instead of pop insufficient-funds tx (#608)
Browse files Browse the repository at this point in the history
* feat: remove instead of pop insufficient-funds tx

* bump version

* update

* update
  • Loading branch information
0xmountaintop authored Dec 25, 2023
1 parent 833f904 commit 640b391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,9 @@ loop:
break loop

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

default:
// Strange error, discard the transaction and get the next in line (note, the
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
const (
VersionMajor = 5 // Major version component of the current release
VersionMinor = 1 // Minor version component of the current release
VersionPatch = 8 // Patch version component of the current release
VersionPatch = 9 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string
)

Expand Down

0 comments on commit 640b391

Please sign in to comment.