diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-02 17:29:59 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-02 17:29:59 +0800 |
commit | 7d0004f058d7e93df684b0524fd52cd2eb1af3e3 (patch) | |
tree | 1817f79e93958781e82d787413fc6b04a916c0d1 /ethereal/gui.go | |
parent | e5b45d1c86d51a61f666b8a80af78c790c57ba13 (diff) | |
download | dexon-7d0004f058d7e93df684b0524fd52cd2eb1af3e3.tar.gz dexon-7d0004f058d7e93df684b0524fd52cd2eb1af3e3.tar.zst dexon-7d0004f058d7e93df684b0524fd52cd2eb1af3e3.zip |
For namreg only show items starting without leading zeros.
Diffstat (limited to 'ethereal/gui.go')
-rw-r--r-- | ethereal/gui.go | 4 |
1 files changed, 3 insertions, 1 deletions
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())}) + } }) } } |