aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-02 06:28:45 +0800
committerobscuren <geffobscura@gmail.com>2014-07-02 06:28:45 +0800
commit677de48f6cd849fde7f8a4733bbab4b992471a13 (patch)
tree56b1c81759e7271c06cfa7ad732675efb38d43a1 /ethereal
parentc4f9151c67b1481490978a9dca0599b3e92680d5 (diff)
downloaddexon-677de48f6cd849fde7f8a4733bbab4b992471a13.tar.gz
dexon-677de48f6cd849fde7f8a4733bbab4b992471a13.tar.zst
dexon-677de48f6cd849fde7f8a4733bbab4b992471a13.zip
Listen for namereg changes
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/gui.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/ethereal/gui.go b/ethereal/gui.go
index 1e6fac4de..ea91622c6 100644
--- a/ethereal/gui.go
+++ b/ethereal/gui.go
@@ -41,7 +41,6 @@ type Gui struct {
// Create GUI, but doesn't start it
func NewWindow(ethereum *eth.Ethereum, session string, logLevel int) *Gui {
-
db, err := ethdb.NewLDBDatabase("tx_database")
if err != nil {
panic(err)
@@ -273,7 +272,11 @@ func (gui *Gui) update() {
reactor.Subscribe("newBlock", blockChan)
reactor.Subscribe("newTx:pre", txChan)
reactor.Subscribe("newTx:post", txChan)
- //reactor.Subscribe("object:"+string(namereg), objectChan)
+
+ nameReg := ethpub.EthereumConfig(gui.eth.StateManager()).NameReg()
+ if nameReg != nil {
+ reactor.Subscribe("object:"+string(nameReg.Address()), objectChan)
+ }
reactor.Subscribe("peerList", peerChan)
ticker := time.NewTicker(5 * time.Second)