aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
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/xeth.go
parent09b69831758cb1001027fbb59dff9b3fbe20bbb2 (diff)
downloaddexon-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar.gz
dexon-eb82ca4563cf80bef9b520673d3bd18283da3a1f.tar.zst
dexon-eb82ca4563cf80bef9b520673d3bd18283da3a1f.zip
rpc/js coinbase returns null if no etherbase set
Diffstat (limited to 'xeth/xeth.go')
-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()
}
a>bapt2014-12-211-1/+0 * Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla intijl2014-12-091-1/+1 * Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-111-1/+1 * Stagify.vanilla2014-06-161-2/+1 * - Convert gmake, bzip to USESmiwi2014-05-291-2/+1 * The FreeBSD x11@ and graphics team proudly presentszeising2014-04-171-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-5/+2 * - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0 * Bump PORTREVISION after DESKTOP_ENTRIES updatemakc2013-01-231-1/+1 * - Update DESKTOP_ENTRIES:makc2013-01-231-1/+1 * Fix typos in COMMENTcs2012-07-291-1/+1 * - update png to 1.5.10dinoex2012-06-011-2/+3