limit scope to state tests
This commit is contained in:
parent
1b9940486e
commit
ff7ac51348
|
@ -249,7 +249,6 @@ func ProcessParentBlockHash(prevHash common.Hash, vmenv *vm.EVM, statedb *state.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
oldContext := vmenv.TxContext
|
|
||||||
msg := &Message{
|
msg := &Message{
|
||||||
From: params.SystemAddress,
|
From: params.SystemAddress,
|
||||||
GasLimit: 30_000_000,
|
GasLimit: 30_000_000,
|
||||||
|
@ -263,7 +262,6 @@ func ProcessParentBlockHash(prevHash common.Hash, vmenv *vm.EVM, statedb *state.
|
||||||
statedb.AddAddressToAccessList(params.HistoryStorageAddress)
|
statedb.AddAddressToAccessList(params.HistoryStorageAddress)
|
||||||
_, _, _ = vmenv.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560)
|
_, _, _ = vmenv.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560)
|
||||||
statedb.Finalise(true)
|
statedb.Finalise(true)
|
||||||
vmenv.Reset(oldContext, statedb)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDepositLogs extracts the EIP-6110 deposit values from logs emitted by
|
// ParseDepositLogs extracts the EIP-6110 deposit values from logs emitted by
|
||||||
|
|
|
@ -299,11 +299,13 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh
|
||||||
tracer.OnTxStart(evm.GetVMContext(), nil, msg.From)
|
tracer.OnTxStart(evm.GetVMContext(), nil, msg.From)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
oldContext := evm.TxContext
|
||||||
if config.IsPrague(new(big.Int), 0) {
|
if config.IsPrague(new(big.Int), 0) {
|
||||||
for i := int(block.Number().Uint64() - 1); i >= 0; i-- {
|
for i := int(block.Number().Uint64() - 1); i >= 0; i-- {
|
||||||
core.ProcessParentBlockHash(vmTestBlockHash(uint64(i)), evm, st.StateDB)
|
core.ProcessParentBlockHash(vmTestBlockHash(uint64(i)), evm, st.StateDB)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
evm.Reset(oldContext, st.StateDB)
|
||||||
|
|
||||||
// Execute the message.
|
// Execute the message.
|
||||||
snapshot := st.StateDB.Snapshot()
|
snapshot := st.StateDB.Snapshot()
|
||||||
|
|
Loading…
Reference in New Issue