diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-05 17:57:14 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-05 17:57:14 +0800 |
commit | fbd53f0e34b636074941f5ea7b151bf173c5ed17 (patch) | |
tree | bd4c3c5a5ab444fb5c5930f7b59e52e011ce3bca /ui | |
parent | f7fb5b902c8b216c835c10fc4676b7b08fb90d04 (diff) | |
download | dexon-fbd53f0e34b636074941f5ea7b151bf173c5ed17.tar dexon-fbd53f0e34b636074941f5ea7b151bf173c5ed17.tar.gz dexon-fbd53f0e34b636074941f5ea7b151bf173c5ed17.tar.bz2 dexon-fbd53f0e34b636074941f5ea7b151bf173c5ed17.tar.lz dexon-fbd53f0e34b636074941f5ea7b151bf173c5ed17.tar.xz dexon-fbd53f0e34b636074941f5ea7b151bf173c5ed17.tar.zst dexon-fbd53f0e34b636074941f5ea7b151bf173c5ed17.zip |
Renamed block manager to state manager
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gui.go | 2 | ||||
-rw-r--r-- | ui/library.go | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -57,7 +57,7 @@ type Gui struct { // Create GUI, but doesn't start it func New(ethereum *eth.Ethereum) *Gui { - lib := &EthLib{blockManager: ethereum.StateManager(), blockChain: ethereum.BlockChain(), txPool: ethereum.TxPool()} + lib := &EthLib{stateManager: ethereum.StateManager(), blockChain: ethereum.BlockChain(), txPool: ethereum.TxPool()} db, err := ethdb.NewLDBDatabase("tx_database") if err != nil { panic(err) diff --git a/ui/library.go b/ui/library.go index 3bbb01314..8dda0a89e 100644 --- a/ui/library.go +++ b/ui/library.go @@ -9,7 +9,7 @@ import ( ) type EthLib struct { - blockManager *ethchain.BlockManager + stateManager *ethchain.StateManager blockChain *ethchain.BlockChain txPool *ethchain.TxPool } @@ -32,7 +32,7 @@ func (lib *EthLib) CreateTx(receiver, a, data string) string { amount := ethutil.Big(a) code := ethchain.Compile(strings.Split(data, "\n")) tx := ethchain.NewTransaction(hash, amount, code) - tx.Nonce = lib.blockManager.GetAddrState(keyRing.Get(1).Bytes()).Nonce + tx.Nonce = lib.stateManager.GetAddrState(keyRing.Get(1).Bytes()).Nonce tx.Sign(keyRing.Get(0).Bytes()) |