aboutsummaryrefslogtreecommitdiffstats
path: root/core/transaction_pool.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-09 06:41:47 +0800
committerobscuren <geffobscura@gmail.com>2015-06-09 06:41:47 +0800
commit5245bd7b20192071cac5477168dc6735abd35c6c (patch)
tree0ff9da730feb4bfcb7f450ded29922bea39a2331 /core/transaction_pool.go
parent55b7c14554bc4faabc14aac6410b75f97c55cd4e (diff)
downloadgo-tangerine-5245bd7b20192071cac5477168dc6735abd35c6c.tar.gz
go-tangerine-5245bd7b20192071cac5477168dc6735abd35c6c.tar.zst
go-tangerine-5245bd7b20192071cac5477168dc6735abd35c6c.zip
core: added a test for missing nonces
This test showed the logic in the queue was slightly flawed sending out transactions to its peer it couldn't even resolve itself.
Diffstat (limited to 'core/transaction_pool.go')
-rw-r--r--core/transaction_pool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/transaction_pool.go b/core/transaction_pool.go
index 27dc1b0d1..77744f8f7 100644
--- a/core/transaction_pool.go
+++ b/core/transaction_pool.go
@@ -331,7 +331,7 @@ func (pool *TxPool) checkQueue() {
// current account nonce.
sort.Sort(addq)
for _, e := range addq {
- if e.AccountNonce > curnonce+1 {
+ if e.AccountNonce > curnonce {
break
}
delete(txs, e.hash)