good morning!!!!

Skip to content
Snippets Groups Projects
Commit 677de48f authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Listen for namereg changes

parent c4f9151c
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,6 @@ type Gui struct { ...@@ -41,7 +41,6 @@ type Gui struct {
// Create GUI, but doesn't start it // Create GUI, but doesn't start it
func NewWindow(ethereum *eth.Ethereum, session string, logLevel int) *Gui { func NewWindow(ethereum *eth.Ethereum, session string, logLevel int) *Gui {
db, err := ethdb.NewLDBDatabase("tx_database") db, err := ethdb.NewLDBDatabase("tx_database")
if err != nil { if err != nil {
panic(err) panic(err)
...@@ -273,7 +272,11 @@ func (gui *Gui) update() { ...@@ -273,7 +272,11 @@ func (gui *Gui) update() {
reactor.Subscribe("newBlock", blockChan) reactor.Subscribe("newBlock", blockChan)
reactor.Subscribe("newTx:pre", txChan) reactor.Subscribe("newTx:pre", txChan)
reactor.Subscribe("newTx:post", 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) reactor.Subscribe("peerList", peerChan)
ticker := time.NewTicker(5 * time.Second) ticker := time.NewTicker(5 * time.Second)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment