aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-06-22 22:01:49 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-06-23 02:03:54 +0800
commiteebde1a2e202e92eee722ff0841cda4bd0257a62 (patch)
tree19e349d8d72a14b8e5b10ff41bbcaf3441db73a7 /light
parentb0b3cf2eeb74e45b373d4708375e899688c7f9c8 (diff)
downloaddexon-eebde1a2e202e92eee722ff0841cda4bd0257a62.tar
dexon-eebde1a2e202e92eee722ff0841cda4bd0257a62.tar.gz
dexon-eebde1a2e202e92eee722ff0841cda4bd0257a62.tar.bz2
dexon-eebde1a2e202e92eee722ff0841cda4bd0257a62.tar.lz
dexon-eebde1a2e202e92eee722ff0841cda4bd0257a62.tar.xz
dexon-eebde1a2e202e92eee722ff0841cda4bd0257a62.tar.zst
dexon-eebde1a2e202e92eee722ff0841cda4bd0257a62.zip
core: ensure transactions correctly drop on pool limiting
Diffstat (limited to 'light')
-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