You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linea uses the clique consensus protocol (see EIP-225). The upshot of this is that the mining beneficiary address is embedded in the data field of the block, whilst coinbase is set to 0x0. Therefore, this part of ReplayExecutionEnvironment is incorrect:
Thanks @DavePearce. I discussed this point with @julien-marchand, too, and the conclusion was that blocks contain miner=0x000000 which is where we got the coinbase at 0x0 from in our tests. We have to use the address (deduced from the public key) that signed the block instead for both
Linea uses the clique consensus protocol (see EIP-225). The upshot of this is that the mining beneficiary address is embedded in the data field of the block, whilst
coinbase
is set to0x0
. Therefore, this part ofReplayExecutionEnvironment
is incorrect:Specifically,
header.getCoinbase()
does not return the correct beneficiary address. Instead, we need to extract it fromheader.getExtraData()
.This explains why various transactions fail with an incorrect balance for the address (see here for more).
The text was updated successfully, but these errors were encountered: