peer+lnpeer: add new methods to expose local+global features for lnpeer interface

This commit is contained in:
Olaoluwa Osuntokun committed 2019-09-25 18:26:01 -07:00
1 parent a58cfa65ff
commit 3f8526a0ca
7 files changed
+59 -1

No files matched your search

+12
View File
@@ -46,4 +46,16 @@ type Peer interface {
// using the interface to cancel any processing in the event the backing
// implementation exits.
QuitSignal() <-chan struct{}
// LocalGlobalFeatures returns the set of global features that has been
// advertised by the local peer. This allows sub-systems that use this
// interface to gate their behavior off the set of negotiated feature
// bits.
LocalGlobalFeatures() *lnwire.FeatureVector
// RemoteGlobalFeatures returns the set of global features that has
// been advertised by the remote peer. This allows sub-systems that use
// this interface to gate their behavior off the set of negotiated
// feature bits.
RemoteGlobalFeatures() *lnwire.FeatureVector
}