aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 23:03:49 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 23:03:49 +0800
commit0ac346f7078dba597d60f991c32ddbfd7be167ba (patch)
tree33a690fa6ef7cbc8584ff2a1f40f85b28b42ac7f /xeth
parent9f84c78eb5cceb5f413fbdeafe63786f1b958e83 (diff)
parenteb102bf4bb0bff773824ff467fbb2e49c1f6939b (diff)
downloadgo-tangerine-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar
go-tangerine-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.gz
go-tangerine-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.bz2
go-tangerine-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.lz
go-tangerine-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.xz
go-tangerine-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.zst
go-tangerine-0ac346f7078dba597d60f991c32ddbfd7be167ba.zip
Merge branch 'develop' into rpcargs
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 445303997..5bb271591 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -209,6 +209,16 @@ func (self *XEth) Accounts() []string {
return accountAddresses
}
+func (self *XEth) DbPut(key, val []byte) bool {
+ self.backend.ExtraDb().Put(key, val)
+ return true
+}
+
+func (self *XEth) DbGet(key []byte) ([]byte, error) {
+ val, err := self.backend.ExtraDb().Get(key)
+ return val, err
+}
+
func (self *XEth) PeerCount() int {
return self.backend.PeerCount()
}
@@ -250,8 +260,8 @@ func (self *XEth) IsListening() bool {
}
func (self *XEth) Coinbase() string {
- cb, _ := self.backend.AccountManager().Coinbase()
- return common.ToHex(cb)
+ eb, _ := self.backend.Etherbase()
+ return eb.Hex()
}
func (self *XEth) NumberToHuman(balance string) string {