py-evm
py-evm copied to clipboard
Incrementally building clique blocks doesn't work
Trying to incrementally build clique blocks fails (the state root will be wrong on the final block) because the initial header is not signed so all tx fees are incorrectly assigned to the coinbase address.
We should also probably get rid of https://github.com/ethereum/py-evm/blob/3b79b353311924273f44a5458904302b341f5816/eth/consensus/clique/clique.py#L102 as it lets one incrementally build a block that in the end won't be valid