diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-08-16 22:09:29 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-17 21:50:35 +0800 |
commit | f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b (patch) | |
tree | ea623fa39c51265de09020ead1840ba881748bc9 /core/vm/gas_table.go | |
parent | b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3 (diff) | |
download | go-tangerine-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar go-tangerine-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.gz go-tangerine-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.bz2 go-tangerine-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.lz go-tangerine-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.xz go-tangerine-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.zst go-tangerine-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.zip |
core/vm: rework reversion to work on a higher level
Diffstat (limited to 'core/vm/gas_table.go')
-rw-r--r-- | core/vm/gas_table.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index a6346bd80..3b0698ce9 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -396,6 +396,10 @@ func gasReturn(gt params.GasTable, evm *EVM, contract *Contract, stack *Stack, m return memoryGasCost(mem, memorySize) } +func gasRevert(gt params.GasTable, evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { + return memoryGasCost(mem, memorySize) +} + func gasSuicide(gt params.GasTable, evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { var gas uint64 // EIP150 homestead gas reprice fork: |