Use ExtraDB for storage. Fixes #577

This commit is contained in:
Taylor Gerring
2015-03-27 09:36:18 +01:00
parent b0b0939879
commit e29396b691
7 changed files with 56 additions and 61 deletions

View File

@ -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()
}