aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
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 3a9855bf3..8ae1ee60d 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()
}