aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-26 06:09:38 +0800
committerobscuren <geffobscura@gmail.com>2014-05-26 06:09:38 +0800
commit3ebd7f1166f03f94117651d8e74b9603ee7d6966 (patch)
tree0b26904388619e1e36380a8a21d65476a9f0cc94 /ethchain/state_object.go
parent81ef40010f6f31bc94f654048b41fa3a9f9e07eb (diff)
downloadgo-tangerine-3ebd7f1166f03f94117651d8e74b9603ee7d6966.tar
go-tangerine-3ebd7f1166f03f94117651d8e74b9603ee7d6966.tar.gz
go-tangerine-3ebd7f1166f03f94117651d8e74b9603ee7d6966.tar.bz2
go-tangerine-3ebd7f1166f03f94117651d8e74b9603ee7d6966.tar.lz
go-tangerine-3ebd7f1166f03f94117651d8e74b9603ee7d6966.tar.xz
go-tangerine-3ebd7f1166f03f94117651d8e74b9603ee7d6966.tar.zst
go-tangerine-3ebd7f1166f03f94117651d8e74b9603ee7d6966.zip
State snapshotting
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index 4d615e2fe..3e9c6df40 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -81,12 +81,17 @@ func (c *StateObject) SetStorage(num *big.Int, val *ethutil.Value) {
c.SetAddr(addr, val)
}
-func (c *StateObject) GetMem(num *big.Int) *ethutil.Value {
+func (c *StateObject) GetStorage(num *big.Int) *ethutil.Value {
nb := ethutil.BigToBytes(num, 256)
return c.Addr(nb)
}
+/* DEPRECATED */
+func (c *StateObject) GetMem(num *big.Int) *ethutil.Value {
+ return c.GetStorage(num)
+}
+
func (c *StateObject) GetInstr(pc *big.Int) *ethutil.Value {
if int64(len(c.script)-1) < pc.Int64() {
return ethutil.NewValue(0)