diff --git a/txpool/types.go b/txpool/types.go index 0f96c45e0..7ab10cd2e 100644 --- a/txpool/types.go +++ b/txpool/types.go @@ -375,15 +375,16 @@ func (ctx *TxParseContext) ParseTransaction(payload []byte, pos int, slot *TxSlo } //ctx.keccak1.Sum(slot.IdHash[:0]) _, _ = ctx.keccak1.(io.Reader).Read(slot.IDHash[:32]) - if !ctx.withSender { - return p, nil - } if validateHash != nil { if err := validateHash(slot.IDHash[:32]); err != nil { return p, err } } + if !ctx.withSender { + return p, nil + } + // Computing sigHash (hash used to recover sender from the signature) // Write len Prefix to the sighash if sigHashLen < 56 {