aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-18 04:30:17 +0800
committerobscuren <geffobscura@gmail.com>2014-07-18 04:30:17 +0800
commit01d9107bce356e4de94b9506246672d003948203 (patch)
tree0d6dcecdce2e4e06f91e2dfdf14d6e92ec063cbd /ethereal/gui.go
parentba3fabda774cc3f0c12542985c7ff252abc034da (diff)
downloadgo-tangerine-01d9107bce356e4de94b9506246672d003948203.tar
go-tangerine-01d9107bce356e4de94b9506246672d003948203.tar.gz
go-tangerine-01d9107bce356e4de94b9506246672d003948203.tar.bz2
go-tangerine-01d9107bce356e4de94b9506246672d003948203.tar.lz
go-tangerine-01d9107bce356e4de94b9506246672d003948203.tar.xz
go-tangerine-01d9107bce356e4de94b9506246672d003948203.tar.zst
go-tangerine-01d9107bce356e4de94b9506246672d003948203.zip
Add namecoin name if available to block
Diffstat (limited to 'ethereal/gui.go')
-rw-r--r--ethereal/gui.go6
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) {