aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-02 17:29:59 +0800
committerobscuren <geffobscura@gmail.com>2014-07-02 17:29:59 +0800
commit7d0004f058d7e93df684b0524fd52cd2eb1af3e3 (patch)
tree1817f79e93958781e82d787413fc6b04a916c0d1
parente5b45d1c86d51a61f666b8a80af78c790c57ba13 (diff)
downloadgo-tangerine-7d0004f058d7e93df684b0524fd52cd2eb1af3e3.tar.gz
go-tangerine-7d0004f058d7e93df684b0524fd52cd2eb1af3e3.tar.zst
go-tangerine-7d0004f058d7e93df684b0524fd52cd2eb1af3e3.zip
For namreg only show items starting without leading zeros.
-rw-r--r--ethereal/gui.go4
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())})
+ }
})
}
}