aboutsummaryrefslogtreecommitdiffstats
path: root/state/state.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-11 19:16:36 +0800
committerobscuren <geffobscura@gmail.com>2014-11-11 19:16:36 +0800
commit75ee3b3f089e703b728bb301cc6b2abe4c111c41 (patch)
tree9087d865e296cbb93c590fe15cd9942353b70058 /state/state.go
parent9509322ecd8e709ce8a17442836b6ff15ba2edff (diff)
downloaddexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar.gz
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar.bz2
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar.lz
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar.xz
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar.zst
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.zip
debugging code
Diffstat (limited to 'state/state.go')
-rw-r--r--state/state.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/state/state.go b/state/state.go
index e1b73a6ab..8eb348dda 100644
--- a/state/state.go
+++ b/state/state.go
@@ -62,7 +62,7 @@ func (self *State) Refund(addr []byte, gas, price *big.Int) {
self.refund[string(addr)] = new(big.Int)
}
- self.refund[string(addr)] = new(big.Int).Add(self.refund[string(addr)], amount)
+ self.refund[string(addr)].Add(self.refund[string(addr)], amount)
}
func (self *State) AddBalance(addr []byte, amount *big.Int) {
@@ -237,8 +237,8 @@ func (self *State) Set(state *State) {
self.logs = state.logs
}
-func (s *State) Root() interface{} {
- return s.Trie.Root
+func (s *State) Root() []byte {
+ return s.Trie.GetRoot()
}
// Resets the trie and all siblings