aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_chain.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-16 10:06:51 +0800
committerobscuren <geffobscura@gmail.com>2014-04-16 10:06:51 +0800
commit9c6aca78933c14ca107da30c4690808950718368 (patch)
treeda641b2904ea6ed05870a1ded486543529eae5a3 /ethchain/block_chain.go
parentca13e3b1058f0d680b79dc1d9319d427a09493f8 (diff)
downloaddexon-9c6aca78933c14ca107da30c4690808950718368.tar.gz
dexon-9c6aca78933c14ca107da30c4690808950718368.tar.zst
dexon-9c6aca78933c14ca107da30c4690808950718368.zip
Merged accounts and contracts in to StateObject
* Account removed * Contract removed * Address state changed to CachedStateObject * Added StateObject
Diffstat (limited to 'ethchain/block_chain.go')
-rw-r--r--ethchain/block_chain.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/block_chain.go b/ethchain/block_chain.go
index 2a50ef687..d65c38fe4 100644
--- a/ethchain/block_chain.go
+++ b/ethchain/block_chain.go
@@ -262,9 +262,9 @@ func AddTestNetFunds(block *Block) {
} {
//log.Println("2^200 Wei to", addr)
codedAddr := ethutil.FromHex(addr)
- addr := block.state.GetAccount(codedAddr)
- addr.Amount = ethutil.BigPow(2, 200)
- block.state.UpdateAccount(codedAddr, addr)
+ account := block.state.GetAccount(codedAddr)
+ account.Amount = ethutil.BigPow(2, 200)
+ block.state.UpdateStateObject(account)
}
}