Files
plugeth/core
Felix Lange df544350bc core/types: fix immutability guarantees in Block (#27844)
This change rearranges the accessor methods in block.go and fixes some minor issues with
the copy-on-write logic of block data. Fixed issues:

- Block.WithWithdrawals did not create a shallow copy of the block.

- Block.WithBody copied the header unnecessarily, and did not preserve withdrawals.

However, the bugs did not affect any code in go-ethereum because blocks are *always*
created using NewBlockWithHeader().WithBody().WithWithdrawals()
2023-08-04 14:16:23 +02:00
..
2014-12-04 10:28:02 +01:00
2017-05-25 17:14:33 +03:00
2023-07-27 16:53:28 +03:00
2022-09-07 20:21:59 +02:00
2023-03-30 06:53:32 -04:00