aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_chain.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-30 06:31:15 +0800
committerobscuren <geffobscura@gmail.com>2014-07-30 06:31:15 +0800
commit1f9894c0845a5259adbfd30fe3a86631e6403b8d (patch)
tree7e038ca62c65482d576d3a8b3fde5419ac866f2f /ethchain/block_chain.go
parent27f892265312255811867fab83acbeefa1626cec (diff)
downloaddexon-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar
dexon-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.gz
dexon-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.bz2
dexon-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.lz
dexon-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.xz
dexon-1f9894c0845a5259adbfd30fe3a86631e6403b8d.tar.zst
dexon-1f9894c0845a5259adbfd30fe3a86631e6403b8d.zip
Old code removed and renamed amount to balance
Diffstat (limited to 'ethchain/block_chain.go')
-rw-r--r--ethchain/block_chain.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/ethchain/block_chain.go b/ethchain/block_chain.go
index 1a2662787..250903798 100644
--- a/ethchain/block_chain.go
+++ b/ethchain/block_chain.go
@@ -2,11 +2,12 @@ package ethchain
import (
"bytes"
+ "math"
+ "math/big"
+
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
- "math"
- "math/big"
)
var chainlogger = ethlog.NewLogger("CHAIN")
@@ -280,7 +281,7 @@ func AddTestNetFunds(block *Block) {
} {
codedAddr := ethutil.Hex2Bytes(addr)
account := block.state.GetAccount(codedAddr)
- account.Amount = ethutil.Big("1606938044258990275541962092341162602522202993782792835301376") //ethutil.BigPow(2, 200)
+ account.Balance = ethutil.Big("1606938044258990275541962092341162602522202993782792835301376") //ethutil.BigPow(2, 200)
block.state.UpdateStateObject(account)
}
}