go-ethereum/consensus/ethash
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
..
algorithm.go consensus/ethash: fix typo (#26016) 2022-11-01 14:39:39 +01:00
algorithm_test.go all: use unified emptyRootHash and emptyCodeHash (#26718) 2023-02-21 06:12:27 -05:00
api.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
consensus.go consensus: improve consensus engine definition (#26871) 2023-03-16 15:34:25 -04:00
consensus_test.go all: remove deprecated uses of math.rand (#26710) 2023-02-16 14:36:58 -05:00
difficulty.go go.mod: upgrade to github.com/holiman/uint256 v1.2.0 (#22745) 2021-05-10 12:29:33 +02:00
ethash.go all: remove remaining uses of untyped golang-lru (#26194) 2022-11-17 11:15:28 +01:00
ethash_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
mmap_help_linux.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
mmap_help_other.go consensus/ethash: avoid runtime errors due to OOD on mmap writes (#23799) 2021-11-02 11:33:54 +01:00
sealer.go all: use http package to replace http method names (#26535) 2023-01-24 11:12:25 +02:00
sealer_test.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00