aboutsummaryrefslogtreecommitdiffstats
path: root/ethstate/state_object.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-25 17:29:42 +0800
committerobscuren <geffobscura@gmail.com>2014-08-25 17:29:42 +0800
commit3f904bf3acb5779f68834ebca95825ea1990f85b (patch)
tree80bd348f7948d1f932fc88a7320093f31800d67c /ethstate/state_object.go
parentcdbc3ecc2a738a4b8803c40dfc510fd099ce8584 (diff)
downloaddexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar
dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.gz
dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.bz2
dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.lz
dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.xz
dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.tar.zst
dexon-3f904bf3acb5779f68834ebca95825ea1990f85b.zip
Implemented POST
Diffstat (limited to 'ethstate/state_object.go')
-rw-r--r--ethstate/state_object.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethstate/state_object.go b/ethstate/state_object.go
index 67d09edd8..bf4e92583 100644
--- a/ethstate/state_object.go
+++ b/ethstate/state_object.go
@@ -245,6 +245,7 @@ func (self *StateObject) Copy() *StateObject {
stateObject.InitCode = ethutil.CopyBytes(self.InitCode)
stateObject.storage = self.storage.Copy()
stateObject.gasPool.Set(self.gasPool)
+ stateObject.remove = self.remove
return stateObject
}
@@ -271,6 +272,11 @@ func (c *StateObject) Init() Code {
return c.InitCode
}
+// To satisfy ClosureRef
+func (self *StateObject) Object() *StateObject {
+ return self
+}
+
// Debug stuff
func (self *StateObject) CreateOutputForDiff() {
fmt.Printf("%x %x %x %x\n", self.Address(), self.State.Root(), self.Balance.Bytes(), self.Nonce)