diff --git a/crypto/txsigner.go b/crypto/txsigner.go index 7f8c3a82c1..269d6fa77c 100644 --- a/crypto/txsigner.go +++ b/crypto/txsigner.go @@ -3,6 +3,7 @@ package crypto import ( "crypto/ecdsa" "errors" + "fmt" "math/big" "github.com/0xPolygon/polygon-edge/chain" @@ -37,14 +38,19 @@ func NewSigner(forks chain.ForksInTime, chainID uint64) TxSigner { var signer TxSigner if forks.London { + fmt.Println("Using London signer") signer = NewLondonSigner(chainID) } else if forks.Berlin { + fmt.Println("Using Berlin signer") signer = NewBerlinSigner(chainID) } else if forks.EIP155 { + fmt.Println("Using EIP155 signer") signer = NewEIP155Signer(chainID) } else if forks.Homestead { + fmt.Println("Using Homestead signer") signer = NewHomesteadSigner() } else { + fmt.Println("Using NewFrontierSigner") signer = NewFrontierSigner() } diff --git a/txpool/txpool.go b/txpool/txpool.go index 3fcba4a526..e1f2e5a187 100644 --- a/txpool/txpool.go +++ b/txpool/txpool.go @@ -572,7 +572,7 @@ func (p *TxPool) validateTx(tx *types.Transaction) error { if signerErr != nil { metrics.IncrCounter([]string{txPoolMetrics, "invalid_signature_txs"}, 1) - return ErrExtractSignature + return fmt.Errorf("%w. %w", ErrExtractSignature, signerErr) } // If the from field is set, check that