コード例 #1
0
ファイル: peer.go プロジェクト: srderson/fabric
// Load enables a peer to read the value that corresponds to the given database key
func (p *PeerImpl) Load(key string) ([]byte, error) {
	db := db.GetDBHandle()
	return db.Get(db.PersistCF, []byte(key))
}
コード例 #2
0
ファイル: persist.go プロジェクト: RicHernandez2/fabric
func (h *PersistHelper) ReadState(key string) ([]byte, error) {
	db := db.GetDBHandle()
	return db.Get(db.PersistCF, []byte("consensus."+key))
}