mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
feature: add ListSets function
This commit is contained in:
parent
c27d60b6d1
commit
496434259a
1 changed files with 11 additions and 0 deletions
|
@ -108,3 +108,14 @@ func (m *Manager) Get(set Set) *lnwire.FeatureVector {
|
||||||
raw := m.GetRaw(set)
|
raw := m.GetRaw(set)
|
||||||
return lnwire.NewFeatureVector(raw, lnwire.Features)
|
return lnwire.NewFeatureVector(raw, lnwire.Features)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ListSets returns a list of the feature sets that our node supports.
|
||||||
|
func (m *Manager) ListSets() []Set {
|
||||||
|
var sets []Set
|
||||||
|
|
||||||
|
for set := range m.fsets {
|
||||||
|
sets = append(sets, set)
|
||||||
|
}
|
||||||
|
|
||||||
|
return sets
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue