lnrpc: add node features to LightningNode and NodeInfo

This commit is contained in:
Conner Fromknecht committed 2019-12-14 07:04:51 -08:00
1 parent eae45f9ad9
commit db0029d03d
5 files changed
+586 -563

No files matched your search

+4
View File
@@ -129,6 +129,10 @@ func CreateRPCInvoice(invoice *channeldb.Invoice,
// CreateRPCFeatures maps a feature vector into a list of lnrpc.Features.
func CreateRPCFeatures(fv *lnwire.FeatureVector) []*lnrpc.Feature {
if fv == nil {
return nil
}
features := fv.Features()
rpcFeatures := make([]*lnrpc.Feature, 0, len(features))
for bit := range features {