// 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 }
// GetBlockchainInfo gets the ledger's BlockchainInfo func (h *Helper) GetBlockchainInfo() *pb.BlockchainInfo { ledger, _ := ledger.GetLedger() info, _ := ledger.GetBlockchainInfo() return info }