evmjit: Remove snapshot arg

This commit is contained in:
Paweł Bylica 2017-12-19 13:24:38 +01:00
parent 216dcd1353
commit 1cf355cdc9
No known key found for this signature in database
GPG key ID: 7A0C037434FE77EF

View file

@ -442,7 +442,7 @@ func getRevision(env *EVM) C.enum_evm_revision {
return C.EVM_FRONTIER return C.EVM_FRONTIER
} }
func (evm *EVMJIT) Run(snapshot int, contract *Contract, input []byte) (ret []byte, err error) { func (evm *EVMJIT) Run(contract *Contract, input []byte) (ret []byte, err error) {
evm.env.depth++ evm.env.depth++
defer func() { evm.env.depth-- }() defer func() { evm.env.depth-- }()
@ -480,7 +480,7 @@ func (evm *EVMJIT) Run(snapshot int, contract *Contract, input []byte) (ret []by
// fmt.Printf("EVMJIT pre Run (gas %d %d mode: %d, env: %d) %x %x\n", contract.Gas, gas, rev, wrapper.index, codeHash, contract.Address()) // fmt.Printf("EVMJIT pre Run (gas %d %d mode: %d, env: %d) %x %x\n", contract.Gas, gas, rev, wrapper.index, codeHash, contract.Address())
r := C.evm_execute(evm.jit, &wrapper.c, rev, &msg, codePtr, codeSize) r := C.evm_execute(evm.jit, &wrapper.c, rev, nil, codePtr, codeSize)
unpinCtx(wrapper.index) unpinCtx(wrapper.index)