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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user