lnrpc: add node features to LightningNode and NodeInfo
This commit is contained in:
5 files changed
+586
-563
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user