diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-27 16:36:18 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-27 16:36:18 +0800 |
commit | e29396b6915a27d3e44be45fe9e540c6ef39f1dd (patch) | |
tree | 079f5dc51816ae63ea2e7b5547d5b24e798aaf04 /xeth | |
parent | b0b0939879b9fb8453ec1c8fa2ceb522e56df3bc (diff) | |
download | dexon-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar.gz dexon-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.tar.zst dexon-e29396b6915a27d3e44be45fe9e540c6ef39f1dd.zip |
Use ExtraDB for storage. Fixes #577
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 10 |
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() } |