go-ethereum/consensus/clique
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
..
api.go consensus/clique: fix block number unmarshal (#23961) 2021-11-24 14:12:26 +01:00
clique.go consensus: improve consensus engine definition (#26871) 2023-03-16 15:34:25 -04:00
clique_test.go all: change chain head markers from block to header (#26777) 2023-03-02 08:29:15 +02:00
snapshot.go all: remove remaining uses of untyped golang-lru (#26194) 2022-11-17 11:15:28 +01:00
snapshot_test.go all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00