Skip to content

Commit f7fb5b9

Browse files
committed
Conform to the new server model
1 parent 8275059 commit f7fb5b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎dev_console.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ func (i *Console) ParseInput(input string) bool {
158158
fmt.Println(value)
159159
case "getaddr":
160160
encoded, _ := hex.DecodeString(tokens[1])
161-
addr := i.ethereum.BlockManager.BlockChain().CurrentBlock.State().GetAccount(encoded)
161+
addr := i.ethereum.BlockChain().CurrentBlock.State().GetAccount(encoded)
162162
fmt.Println("addr:", addr)
163163
case "block":
164164
encoded, _ := hex.DecodeString(tokens[1])
165-
block := i.ethereum.BlockManager.BlockChain().GetBlock(encoded)
165+
block := i.ethereum.BlockChain().GetBlock(encoded)
166166
info := block.BlockInfo()
167167
fmt.Printf("++++++++++ #%d ++++++++++\n%v\n", info.Number, block)
168168
case "say":
@@ -182,7 +182,7 @@ func (i *Console) ParseInput(input string) bool {
182182

183183
key := ethutil.Config.Db.GetKeys()[0]
184184
tx.Sign(key.PrivateKey)
185-
i.ethereum.TxPool.QueueTransaction(tx)
185+
i.ethereum.TxPool().QueueTransaction(tx)
186186

187187
fmt.Printf("%x\n", tx.Hash())
188188
}
@@ -204,7 +204,7 @@ func (i *Console) ParseInput(input string) bool {
204204
key := ethutil.Config.Db.GetKeys()[0]
205205
contract.Sign(key.PrivateKey)
206206

207-
i.ethereum.TxPool.QueueTransaction(contract)
207+
i.ethereum.TxPool().QueueTransaction(contract)
208208

209209
fmt.Printf("%x\n", contract.Hash()[12:])
210210
case "exit", "quit", "q":

0 commit comments

Comments
 (0)