go-ethereum/consensus/beacon
rjl493456442 48d1bf0678
consensus: improve consensus engine definition (#26871)
Makes clear the distinction between Finalize and FinalizedAndAssemble:

- In Finalize function, a series of state operations are applied according to consensus rules. The statedb is mutated and the root hash can be checked and compared afterwards.

This function should be used in block processing(receive afrom network and apply it locally) but not block generation.

- In FinalizeAndAssemble function, after applying state mutations, the block is also to be assembled with the latest
  state root computed, updating the header. 

 This function should be used in block generation only.
2023-03-16 15:34:25 -04:00
..
consensus.go consensus: improve consensus engine definition (#26871) 2023-03-16 15:34:25 -04:00
faker.go all: implement withdrawals (EIP-4895) (#26484) 2023-01-25 15:32:25 +01:00