aboutsummaryrefslogtreecommitdiffstats
path: root/state/state.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-20 09:45:05 +0800
committerobscuren <geffobscura@gmail.com>2014-12-20 09:45:05 +0800
commit125bdc325352823bcf83a1a671a0bfaea1d7d7ff (patch)
treeb2720bfa2e26d8c39d0ef34653c7dee649c76821 /state/state.go
parent75f0412f9dcd883d93cbf39a90d9c434c746d19e (diff)
parent6cff6dd8b863e340851a9ec9a559881ea9520688 (diff)
downloadgo-tangerine-125bdc325352823bcf83a1a671a0bfaea1d7d7ff.tar
go-tangerine-125bdc325352823bcf83a1a671a0bfaea1d7d7ff.tar.gz
go-tangerine-125bdc325352823bcf83a1a671a0bfaea1d7d7ff.tar.bz2
go-tangerine-125bdc325352823bcf83a1a671a0bfaea1d7d7ff.tar.lz
go-tangerine-125bdc325352823bcf83a1a671a0bfaea1d7d7ff.tar.xz
go-tangerine-125bdc325352823bcf83a1a671a0bfaea1d7d7ff.tar.zst
go-tangerine-125bdc325352823bcf83a1a671a0bfaea1d7d7ff.zip
Merge branch 'develop' into poc8
Conflicts: cmd/ethereum/flags.go
Diffstat (limited to 'state/state.go')
-rw-r--r--state/state.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/state/state.go b/state/state.go
index a8d611668..f77da72f0 100644
--- a/state/state.go
+++ b/state/state.go
@@ -94,6 +94,13 @@ func (self *StateDB) GetCode(addr []byte) []byte {
return nil
}
+func (self *StateDB) SetCode(addr, code []byte) {
+ stateObject := self.GetStateObject(addr)
+ if stateObject != nil {
+ stateObject.SetCode(code)
+ }
+}
+
func (self *StateDB) GetState(a, b []byte) []byte {
stateObject := self.GetStateObject(a)
if stateObject != nil {