rpc/js coinbase returns null if no etherbase set
This commit is contained in:
1 parent
09b6983175
commit
eb82ca4563
2 files changed
+5
-4
No files matched your search
+4
-1
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user