Esempio n. 1
0
// Store enables a peer to persist the given key,value pair to the database
func (p *PeerImpl) Store(key string, value []byte) error {
	db := db.GetDBHandle()
	return db.Put(db.PersistCF, []byte(key), value)
}
Esempio n. 2
0
func (h *PersistHelper) StoreState(key string, value []byte) error {
	db := db.GetDBHandle()
	return db.Put(db.PersistCF, []byte("consensus."+key), value)
}