diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-27 18:48:03 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-27 18:48:03 +0800 |
commit | 54a14d5c9d7d1e5039753eac991cd057a5514fe8 (patch) | |
tree | 322f74746ac7a2ddfea0e5fbb42383f46d5aad15 /xeth | |
parent | 09280c5f11993ee64ce231433270345c7e253ee3 (diff) | |
parent | e29396b6915a27d3e44be45fe9e540c6ef39f1dd (diff) | |
download | go-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.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() } |