mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
feat: remove instead of pop insufficient-funds tx (#608)
* feat: remove instead of pop insufficient-funds tx * bump version * update * update
This commit is contained in:
parent
833f9041bb
commit
640b39161c
2 changed files with 3 additions and 2 deletions
|
|
@ -1234,8 +1234,9 @@ loop:
|
||||||
break loop
|
break loop
|
||||||
|
|
||||||
case (errors.Is(err, core.ErrInsufficientFunds) || errors.Is(errors.Unwrap(err), core.ErrInsufficientFunds)):
|
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()
|
txs.Pop()
|
||||||
|
w.eth.TxPool().RemoveTx(tx.Hash(), true)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Strange error, discard the transaction and get the next in line (note, the
|
// Strange error, discard the transaction and get the next in line (note, the
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import (
|
||||||
const (
|
const (
|
||||||
VersionMajor = 5 // Major version component of the current release
|
VersionMajor = 5 // Major version component of the current release
|
||||||
VersionMinor = 1 // Minor 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
|
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue