diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-18 04:30:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-18 04:30:17 +0800 |
commit | 01d9107bce356e4de94b9506246672d003948203 (patch) | |
tree | 0d6dcecdce2e4e06f91e2dfdf14d6e92ec063cbd /ethereal/gui.go | |
parent | ba3fabda774cc3f0c12542985c7ff252abc034da (diff) | |
download | dexon-01d9107bce356e4de94b9506246672d003948203.tar dexon-01d9107bce356e4de94b9506246672d003948203.tar.gz dexon-01d9107bce356e4de94b9506246672d003948203.tar.bz2 dexon-01d9107bce356e4de94b9506246672d003948203.tar.lz dexon-01d9107bce356e4de94b9506246672d003948203.tar.xz dexon-01d9107bce356e4de94b9506246672d003948203.tar.zst dexon-01d9107bce356e4de94b9506246672d003948203.zip |
Add namecoin name if available to block
Diffstat (limited to 'ethereal/gui.go')
-rw-r--r-- | ethereal/gui.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ethereal/gui.go b/ethereal/gui.go index f777f64f7..9a65ff3d0 100644 --- a/ethereal/gui.go +++ b/ethereal/gui.go @@ -243,7 +243,11 @@ func (gui *Gui) readPreviousTransactions() { } func (gui *Gui) processBlock(block *ethchain.Block, initial bool) { - gui.win.Root().Call("addBlock", ethpub.NewPBlock(block), initial) + name := ethpub.FindNameInNameReg(gui.eth.StateManager(), block.Coinbase) + b := ethpub.NewPBlock(block) + b.Name = name + + gui.win.Root().Call("addBlock", b, initial) } func (gui *Gui) setWalletValue(amount, unconfirmedFunds *big.Int) { |