Skip to content

Commit fbd53f0

Browse files
committed
Renamed block manager to state manager
1 parent f7fb5b9 commit fbd53f0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/gui.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type Gui struct {
5757

5858
// Create GUI, but doesn't start it
5959
func New(ethereum *eth.Ethereum) *Gui {
60-
lib := &EthLib{blockManager: ethereum.StateManager(), blockChain: ethereum.BlockChain(), txPool: ethereum.TxPool()}
60+
lib := &EthLib{stateManager: ethereum.StateManager(), blockChain: ethereum.BlockChain(), txPool: ethereum.TxPool()}
6161
db, err := ethdb.NewLDBDatabase("tx_database")
6262
if err != nil {
6363
panic(err)

‎ui/library.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
type EthLib struct {
12-
blockManager *ethchain.BlockManager
12+
stateManager *ethchain.StateManager
1313
blockChain *ethchain.BlockChain
1414
txPool *ethchain.TxPool
1515
}
@@ -32,7 +32,7 @@ func (lib *EthLib) CreateTx(receiver, a, data string) string {
3232
amount := ethutil.Big(a)
3333
code := ethchain.Compile(strings.Split(data, "\n"))
3434
tx := ethchain.NewTransaction(hash, amount, code)
35-
tx.Nonce = lib.blockManager.GetAddrState(keyRing.Get(1).Bytes()).Nonce
35+
tx.Nonce = lib.stateManager.GetAddrState(keyRing.Get(1).Bytes()).Nonce
3636

3737
tx.Sign(keyRing.Get(0).Bytes())
3838

0 commit comments

Comments
 (0)