diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-10 21:05:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-10 21:05:06 +0800 |
commit | e504088b79f55dd08749f08f434cb85a0033898f (patch) | |
tree | 16a7d815f796c89f186c9fbfab7a40e3ff4e7500 /ethchain/vm.go | |
parent | d52e5f7130b58ec9ead7bb20478919f06b0b1a01 (diff) | |
download | go-tangerine-e504088b79f55dd08749f08f434cb85a0033898f.tar go-tangerine-e504088b79f55dd08749f08f434cb85a0033898f.tar.gz go-tangerine-e504088b79f55dd08749f08f434cb85a0033898f.tar.bz2 go-tangerine-e504088b79f55dd08749f08f434cb85a0033898f.tar.lz go-tangerine-e504088b79f55dd08749f08f434cb85a0033898f.tar.xz go-tangerine-e504088b79f55dd08749f08f434cb85a0033898f.tar.zst go-tangerine-e504088b79f55dd08749f08f434cb85a0033898f.zip |
Consensus and bug fixes
* Ensure that each state object has an address that is 20 bytes
* Byte logging for vm
* changed diff output
Diffstat (limited to 'ethchain/vm.go')
-rw-r--r-- | ethchain/vm.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go index 3b58d6106..56456fdab 100644 --- a/ethchain/vm.go +++ b/ethchain/vm.go @@ -182,7 +182,9 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) { require(2) newMemSize = stack.Peek().Uint64() + 32 case MLOAD: + require(1) + newMemSize = stack.Peek().Uint64() + 32 case MSTORE8: require(2) newMemSize = stack.Peek().Uint64() + 1 |