diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-13 23:13:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 23:13:40 +0800 |
commit | 0850f68fd17586370b102aa516739476db4913c2 (patch) | |
tree | 5d2f140139f3763a7da3c20a88acff96b58ec8ad /les/api_backend.go | |
parent | f8f428cc18c5f70814d7b3937128781bac14bffd (diff) | |
parent | 57f4e9025757254536a738bb4771712038f1e763 (diff) | |
download | dexon-0850f68fd17586370b102aa516739476db4913c2.tar dexon-0850f68fd17586370b102aa516739476db4913c2.tar.gz dexon-0850f68fd17586370b102aa516739476db4913c2.tar.bz2 dexon-0850f68fd17586370b102aa516739476db4913c2.tar.lz dexon-0850f68fd17586370b102aa516739476db4913c2.tar.xz dexon-0850f68fd17586370b102aa516739476db4913c2.tar.zst dexon-0850f68fd17586370b102aa516739476db4913c2.zip |
Merge pull request #3668 from obscuren/revert-gas64
Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)"
Diffstat (limited to 'les/api_backend.go')
-rw-r--r-- | les/api_backend.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/les/api_backend.go b/les/api_backend.go index ed2a7cd13..3a71ac4e0 100644 --- a/les/api_backend.go +++ b/les/api_backend.go @@ -88,7 +88,7 @@ func (b *LesApiBackend) GetTd(blockHash common.Hash) *big.Int { return b.eth.blockchain.GetTdByHash(blockHash) } -func (b *LesApiBackend) GetEVM(ctx context.Context, msg core.Message, state ethapi.State, header *types.Header, vmCfg vm.Config) (*vm.EVM, func() error, error) { +func (b *LesApiBackend) GetVMEnv(ctx context.Context, msg core.Message, state ethapi.State, header *types.Header) (*vm.EVM, func() error, error) { stateDb := state.(*light.LightState).Copy() addr := msg.From() from, err := stateDb.GetOrNewStateObject(ctx, addr) @@ -99,7 +99,7 @@ func (b *LesApiBackend) GetEVM(ctx context.Context, msg core.Message, state etha vmstate := light.NewVMState(ctx, stateDb) context := core.NewEVMContext(msg, header, b.eth.blockchain) - return vm.NewEVM(context, vmstate, b.eth.chainConfig, vmCfg), vmstate.Error, nil + return vm.NewEVM(context, vmstate, b.eth.chainConfig, vm.Config{}), vmstate.Error, nil } func (b *LesApiBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error { |