mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
Update block.go
This commit is contained in:
parent
b3687452c5
commit
c0060ba791
1 changed files with 1 additions and 3 deletions
|
|
@ -517,9 +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),
|
||||
}
|
||||
if b.accessList != nil {
|
||||
block.accessList = b.accessList.Copy()
|
||||
accessList: b.accessList,
|
||||
}
|
||||
for i := range body.Uncles {
|
||||
block.uncles[i] = CopyHeader(body.Uncles[i])
|
||||
|
|
|
|||
Loading…
Reference in a new issue