// 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) }
func (h *PersistHelper) StoreState(key string, value []byte) error { db := db.GetDBHandle() return db.Put(db.PersistCF, []byte("consensus."+key), value) }