aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-04 18:40:23 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-04 18:40:23 +0800
commit9bb575be7db85f967771018a915fbc4e80345ee2 (patch)
treee9af69218da8c63cea625131432d257f5dc56a9b /xeth
parent6f69b4d61f1278ea2d9351667512a1202403eaff (diff)
parent1959346793bdee469f68841843dd383cf801aba1 (diff)
downloaddexon-9bb575be7db85f967771018a915fbc4e80345ee2.tar
dexon-9bb575be7db85f967771018a915fbc4e80345ee2.tar.gz
dexon-9bb575be7db85f967771018a915fbc4e80345ee2.tar.bz2
dexon-9bb575be7db85f967771018a915fbc4e80345ee2.tar.lz
dexon-9bb575be7db85f967771018a915fbc4e80345ee2.tar.xz
dexon-9bb575be7db85f967771018a915fbc4e80345ee2.tar.zst
dexon-9bb575be7db85f967771018a915fbc4e80345ee2.zip
Merge pull request #1283 from ethersphere/frontier/accounts
Account management improvements
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index cbc8dbbde..1cec82e5e 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -467,7 +467,10 @@ func (self *XEth) IsListening() bool {
}
func (self *XEth) Coinbase() string {
- eb, _ := self.backend.Etherbase()
+ eb, err := self.backend.Etherbase()
+ if err != nil {
+ return "0x0"
+ }
return eb.Hex()
}