aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-05 17:44:43 +0800
committerobscuren <geffobscura@gmail.com>2014-03-05 17:44:43 +0800
commitf7fb5b902c8b216c835c10fc4676b7b08fb90d04 (patch)
tree538df8c5480941b64f88e303caeecf0840068137
parent827505985652ac164d1f670797396d0f46774fb2 (diff)
downloaddexon-f7fb5b902c8b216c835c10fc4676b7b08fb90d04.tar
dexon-f7fb5b902c8b216c835c10fc4676b7b08fb90d04.tar.gz
dexon-f7fb5b902c8b216c835c10fc4676b7b08fb90d04.tar.bz2
dexon-f7fb5b902c8b216c835c10fc4676b7b08fb90d04.tar.lz
dexon-f7fb5b902c8b216c835c10fc4676b7b08fb90d04.tar.xz
dexon-f7fb5b902c8b216c835c10fc4676b7b08fb90d04.tar.zst
dexon-f7fb5b902c8b216c835c10fc4676b7b08fb90d04.zip
Conform to the new server model
-rw-r--r--dev_console.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev_console.go b/dev_console.go
index 5a69ffa9e..ead4b55e5 100644
--- a/dev_console.go
+++ b/dev_console.go
@@ -158,11 +158,11 @@ func (i *Console) ParseInput(input string) bool {
fmt.Println(value)
case "getaddr":
encoded, _ := hex.DecodeString(tokens[1])
- addr := i.ethereum.BlockManager.BlockChain().CurrentBlock.State().GetAccount(encoded)
+ addr := i.ethereum.BlockChain().CurrentBlock.State().GetAccount(encoded)
fmt.Println("addr:", addr)
case "block":
encoded, _ := hex.DecodeString(tokens[1])
- block := i.ethereum.BlockManager.BlockChain().GetBlock(encoded)
+ block := i.ethereum.BlockChain().GetBlock(encoded)
info := block.BlockInfo()
fmt.Printf("++++++++++ #%d ++++++++++\n%v\n", info.Number, block)
case "say":
@@ -182,7 +182,7 @@ func (i *Console) ParseInput(input string) bool {
key := ethutil.Config.Db.GetKeys()[0]
tx.Sign(key.PrivateKey)
- i.ethereum.TxPool.QueueTransaction(tx)
+ i.ethereum.TxPool().QueueTransaction(tx)
fmt.Printf("%x\n", tx.Hash())
}
@@ -204,7 +204,7 @@ func (i *Console) ParseInput(input string) bool {
key := ethutil.Config.Db.GetKeys()[0]
contract.Sign(key.PrivateKey)
- i.ethereum.TxPool.QueueTransaction(contract)
+ i.ethereum.TxPool().QueueTransaction(contract)
fmt.Printf("%x\n", contract.Hash()[12:])
case "exit", "quit", "q":