multi: extend lnpeer.Peer interface with Disconnect function
This will be used in the gossiper to disconnect from peers if their ban score passes the ban threshold.
This commit is contained in:
8 files changed
+78
-30
No files matched your search
@@ -74,4 +74,7 @@ type Peer interface {
|
||||
// by the remote peer. This allows sub-systems that use this interface
|
||||
// to gate their behavior off the set of negotiated feature bits.
|
||||
RemoteFeatures() *lnwire.FeatureVector
|
||||
|
||||
// Disconnect halts communication with the peer.
|
||||
Disconnect(error)
|
||||
}
|
||||
Reference in new issue
Block a user