mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
validate even no senders #409
This commit is contained in:
parent
75b64f01a3
commit
10d5010b31
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user