feat(core/txpool): improve error responses #30715 (#2170)

This commit is contained in:
Daniel Liu 2026-03-17 13:48:01 +08:00 committed by GitHub
parent eef6327046
commit 5b5c39d849
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,7 +91,7 @@ func ValidateTransaction(tx *types.Transaction, head *types.Header, signer types
// Make sure the transaction is signed properly
from, err := types.Sender(signer, tx)
if err != nil {
return ErrInvalidSender
return fmt.Errorf("%w: %v", ErrInvalidSender, err)
}
// Limit nonce to 2^64-1 per EIP-2681
if tx.Nonce()+1 < tx.Nonce() {