aboutsummaryrefslogtreecommitdiffstats
path: root/light/txpool.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-06-23 04:01:43 +0800
committerGitHub <noreply@github.com>2017-06-23 04:01:43 +0800
commitb664bedcf21f30b54af542e0b4ba4e24c01968fd (patch)
tree552e48cf5323674bda41aace2a236c6419528eb6 /light/txpool.go
parentc98d9b49bf695d7ca0716ccff0d5a78dccac8110 (diff)
parenteebde1a2e202e92eee722ff0841cda4bd0257a62 (diff)
downloaddexon-b664bedcf21f30b54af542e0b4ba4e24c01968fd.tar.gz
dexon-b664bedcf21f30b54af542e0b4ba4e24c01968fd.tar.zst
dexon-b664bedcf21f30b54af542e0b4ba4e24c01968fd.zip
Merge pull request #14673 from holiman/txfix
core: add testcase for txpool
Diffstat (limited to 'light/txpool.go')
-rw-r--r--light/txpool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/light/txpool.go b/light/txpool.go
index 446195806..7276874b8 100644
--- a/light/txpool.go
+++ b/light/txpool.go
@@ -360,7 +360,7 @@ func (pool *TxPool) validateTx(ctx context.Context, tx *types.Transaction) error
currentState := pool.currentState()
if n, err := currentState.GetNonce(ctx, from); err == nil {
if n > tx.Nonce() {
- return core.ErrNonce
+ return core.ErrNonceTooLow
}
} else {
return err