go-pulse/consensus
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
..
beacon consensus: improve consensus engine definition (#26871) 2023-03-16 15:34:25 -04:00
clique consensus: improve consensus engine definition (#26871) 2023-03-16 15:34:25 -04:00
ethash consensus: improve consensus engine definition (#26871) 2023-03-16 15:34:25 -04:00
misc params: make eip1559 params non-global (#25994) 2022-11-04 16:27:15 +01:00
consensus.go consensus: improve consensus engine definition (#26871) 2023-03-16 15:34:25 -04:00
errors.go consensus/beacon: check that only the latest pow block is valid ttd block (#25187) 2022-06-29 15:13:19 +03:00
merger.go all: core rework for the merge transition (#23761) 2021-11-26 13:23:02 +02:00