statedb: return correct validator code size (#4475)
The function `state_object.CodeSize` erroneously returns the validator code size to be 0. This functionality is only used by the EVM, where the size is overridden by the `ValidatorCodeFixEpoch` hard fork to be 0 anyway. However, for nodes currently syncing blocks before the hard fork was effective, this causes an error. A transaction which attempts to mint an NFT to a validator address prior to the hard fork would have failed, because `onERC1155Received` is not implemented by a validator's code. With the erroneous line, the transaction goes through - causing a node with the unpatched binary to reject the block.pull/4478/head
parent
066efff7e8
commit
ee8a8884ce
Loading…
Reference in new issue