From 5b5c39d849489923f163dc5ffede7ef1a1588ce2 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Tue, 17 Mar 2026 13:48:01 +0800 Subject: [PATCH] feat(core/txpool): improve error responses #30715 (#2170) --- core/txpool/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/validation.go b/core/txpool/validation.go index 673fb0f60b..ae10835e43 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -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() {