mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-08 02:47:30 +00:00
core/types: add accessList to WithSeal and WithBody (#34651)
Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
parent
52b8c09fdf
commit
0bafb29490
1 changed files with 2 additions and 0 deletions
|
|
@ -505,6 +505,7 @@ func (b *Block) WithSeal(header *Header) *Block {
|
|||
transactions: b.transactions,
|
||||
uncles: b.uncles,
|
||||
withdrawals: b.withdrawals,
|
||||
accessList: b.accessList,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -516,6 +517,7 @@ func (b *Block) WithBody(body Body) *Block {
|
|||
transactions: slices.Clone(body.Transactions),
|
||||
uncles: make([]*Header, len(body.Uncles)),
|
||||
withdrawals: slices.Clone(body.Withdrawals),
|
||||
accessList: b.accessList,
|
||||
}
|
||||
for i := range body.Uncles {
|
||||
block.uncles[i] = CopyHeader(body.Uncles[i])
|
||||
|
|
|
|||
Loading…
Reference in a new issue