Skip to content

Commit

Permalink
core: avoid double-lock in tx_pool_test (ethereum#20984)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurtonQin authored May 6, 2020
1 parent 234cc8e commit 39c64d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tx_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func validateTxPoolInternals(pool *TxPool) error {
last = nonce
}
}
if nonce := pool.Nonce(addr); nonce != last+1 {
if nonce := pool.pendingNonces.get(addr); nonce != last+1 {
return fmt.Errorf("pending nonce mismatch: have %v, want %v", nonce, last+1)
}
}
Expand Down

0 comments on commit 39c64d8

Please sign in to comment.