forked from cerc-io/plugeth
cmd/evm: slight change in how t8n handles coinbase pre eip-158 (#26139)
This PR fixes a subtle bug in t8n. After this PR, t8n behaves like our state-test runner in certain pre-EIP-158 scenarios
This commit is contained in:
parent
5fded04037
commit
dffd93b475
@ -230,8 +230,8 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
|
|||||||
txIndex++
|
txIndex++
|
||||||
}
|
}
|
||||||
statedb.IntermediateRoot(chainConfig.IsEIP158(vmContext.BlockNumber))
|
statedb.IntermediateRoot(chainConfig.IsEIP158(vmContext.BlockNumber))
|
||||||
// Add mining reward?
|
// Add mining reward? (-1 means rewards are disabled)
|
||||||
if miningReward > 0 {
|
if miningReward >= 0 {
|
||||||
// Add mining reward. The mining reward may be `0`, which only makes a difference in the cases
|
// Add mining reward. The mining reward may be `0`, which only makes a difference in the cases
|
||||||
// where
|
// where
|
||||||
// - the coinbase suicided, or
|
// - the coinbase suicided, or
|
||||||
|
Loading…
Reference in New Issue
Block a user