示例#1
0
文件: peer.go 项目: srderson/fabric
// 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)
}
示例#2
0
func (h *PersistHelper) StoreState(key string, value []byte) error {
	db := db.GetDBHandle()
	return db.Put(db.PersistCF, []byte("consensus."+key), value)
}