aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
Diffstat (limited to 'xeth/xeth.go')
-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()
}