PrepareBlock initializes the consensus fields of a block header according to the rules of a particular engine. The changes are executed inline.
(chain ChainReader, header *types.Header)
| 107 | // PrepareBlock initializes the consensus fields of a block header according to the |
| 108 | // rules of a particular engine. The changes are executed inline. |
| 109 | PrepareBlock(chain ChainReader, header *types.Header) error |
| 110 | |
| 111 | // Finalize runs any post-transaction state modifications (e.g. block rewards) |
| 112 | // and assembles the final block. |