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/memory_table.go | |
parent | b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3 (diff) | |
download | dexon-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar dexon-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.gz dexon-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.bz2 dexon-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.lz dexon-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.xz dexon-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.tar.zst dexon-f9fb70d2eeebfc27d3a4f8ae3ea93c67d7fb0e6b.zip |
core/vm: rework reversion to work on a higher level
Diffstat (limited to 'core/vm/memory_table.go')
-rw-r--r-- | core/vm/memory_table.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/vm/memory_table.go b/core/vm/memory_table.go index f1b671adc..bec0235bc 100644 --- a/core/vm/memory_table.go +++ b/core/vm/memory_table.go @@ -89,6 +89,10 @@ func memoryReturn(stack *Stack) *big.Int { return calcMemSize(stack.Back(0), stack.Back(1)) } +func memoryRevert(stack *Stack) *big.Int { + return calcMemSize(stack.Back(0), stack.Back(1)) +} + func memoryLog(stack *Stack) *big.Int { mSize, mStart := stack.Back(1), stack.Back(0) return calcMemSize(mStart, mSize) |