mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
Derive chainid no alloc (#142)
This commit is contained in:
parent
ce3a3dcfeb
commit
9d5fa95729
@ -322,9 +322,8 @@ func (ctx *TxParseContext) ParseTransaction(payload []byte, pos int, slot *TxSlo
|
|||||||
sigHashLen += uint(chainIdLen) // For chainId
|
sigHashLen += uint(chainIdLen) // For chainId
|
||||||
sigHashLen += 2 // For two extra zeros
|
sigHashLen += 2 // For two extra zeros
|
||||||
|
|
||||||
//vByte = byte(1 - (ctx.v.Uint64() & 1))
|
|
||||||
ctx.deriveChainID.Sub(&ctx.v, &ctx.chainIDMul)
|
ctx.deriveChainID.Sub(&ctx.v, &ctx.chainIDMul)
|
||||||
vByte = ctx.deriveChainID.Sub(&ctx.deriveChainID, u256.N8).Bytes()[0] - 27
|
vByte = byte(ctx.deriveChainID.Sub(&ctx.deriveChainID, u256.N8).Uint64() - 27)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var v uint64
|
var v uint64
|
||||||
|
Loading…
Reference in New Issue
Block a user