From 7d0004f058d7e93df684b0524fd52cd2eb1af3e3 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 2 Jul 2014 11:29:59 +0200 Subject: [PATCH] For namreg only show items starting without leading zeros. --- ethereal/gui.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ethereal/gui.go b/ethereal/gui.go index ea91622c6..1719d41b2 100644 --- a/ethereal/gui.go +++ b/ethereal/gui.go @@ -216,7 +216,9 @@ func (gui *Gui) loadAddressBook() { nameReg := ethpub.EthereumConfig(gui.eth.StateManager()).NameReg() if nameReg != nil { nameReg.State().EachStorage(func(name string, value *ethutil.Value) { - gui.win.Root().Call("addAddress", struct{ Name, Address string }{name, ethutil.Bytes2Hex(value.Bytes())}) + if name[0] != 0 { + gui.win.Root().Call("addAddress", struct{ Name, Address string }{name, ethutil.Bytes2Hex(value.Bytes())}) + } }) } }