aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 16:36:18 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 16:36:18 +0800
commite29396b6915a27d3e44be45fe9e540c6ef39f1dd (patch)
tree079f5dc51816ae63ea2e7b5547d5b24e798aaf04 /xeth/xeth.go
parentb0b0939879b9fb8453ec1c8fa2ceb522e56df3bc (diff)
downloadgo-tangerine-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar
go-tangerine-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar.gz
go-tangerine-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar.bz2
go-tangerine-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar.lz
go-tangerine-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar.xz
go-tangerine-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar.zst
go-tangerine-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.zip
Use ExtraDB for storage. Fixes #577
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()
}