aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-03-27 18:48:03 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-03-27 18:48:03 +0800
commit54a14d5c9d7d1e5039753eac991cd057a5514fe8 (patch)
tree322f74746ac7a2ddfea0e5fbb42383f46d5aad15 /xeth
parent09280c5f11993ee64ce231433270345c7e253ee3 (diff)
parente29396b6915a27d3e44be45fe9e540c6ef39f1dd (diff)
downloadgo-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.gz
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.tar.zst
go-tangerine-54a14d5c9d7d1e5039753eac991cd057a5514fe8.zip
Merge pull request #584 from tgerring/issue577
Use ExtraDB for RPC storage. Fixes #577
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index bf30fc2fc..8bdeddbc9 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()
}