aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-06-22 03:33:51 +0800
committerzelig <viktor.tron@gmail.com>2015-07-03 06:28:12 +0800
commiteb82ca4563cf80bef9b520673d3bd18283da3a1f (patch)
tree068b631c9d78ce6671206a77c1ad484fd190d4d5 /xeth
parent09b69831758cb1001027fbb59dff9b3fbe20bbb2 (diff)
downloadgo-tangerine-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar
go-tangerine-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar.gz
go-tangerine-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar.bz2
go-tangerine-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar.lz
go-tangerine-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar.xz
go-tangerine-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar.zst
go-tangerine-eb82ca4563cf80bef9b520673d3bd18283da3a1f.zip
rpc/js coinbase returns null if no etherbase set
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 2a1366fe1..84d58a49f 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -477,7 +477,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()
}