diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go index 6ca60a855a68..78290862e03a 100644 --- a/core/tx_pool_test.go +++ b/core/tx_pool_test.go @@ -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) } }