Beispiel #1
0
// GetBlockchainInfoBlob marshals a ledger's BlockchainInfo into a protobuf
func (h *Helper) GetBlockchainInfoBlob() []byte {
	ledger, _ := ledger.GetLedger()
	info, _ := ledger.GetBlockchainInfo()
	rawInfo, _ := proto.Marshal(info)
	return rawInfo
}
Beispiel #2
0
// GetBlockchainInfo gets the ledger's BlockchainInfo
func (h *Helper) GetBlockchainInfo() *pb.BlockchainInfo {
	ledger, _ := ledger.GetLedger()
	info, _ := ledger.GetBlockchainInfo()
	return info
}