Minor fix

This commit is contained in:
Jerry 2023-08-07 14:59:40 -07:00
parent 4bc2359c81
commit 4b6f1a6fd6
No known key found for this signature in database
GPG key ID: 5B33FA23CB103211

View file

@ -854,6 +854,9 @@ func (pool *TxPool) validateTxBasics(tx *types.Transaction, local bool) error {
// validateTx checks whether a transaction is valid according to the consensus
// rules and adheres to some heuristic limits of the local node (price and size).
func (pool *TxPool) validateTx(tx *types.Transaction, _ bool) error {
pool.currentStateMutex.Lock()
defer pool.currentStateMutex.Unlock()
// Signature has been checked already, this cannot error.
from, _ := types.Sender(pool.signer, tx)
// Ensure the transaction adheres to nonce ordering