mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
peer+lnpeer: add new methods to expose local+global features for lnpeer interface
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user