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:
Eugene Siegel committed 2024-08-27 14:11:06 -04:00
1 parent 0173e4c44d
commit 99b86ba462
8 files changed
+78 -30

No files matched your search

+2
View File
@@ -283,6 +283,8 @@ type testNode struct {
var _ lnpeer.Peer = (*testNode)(nil)
func (n *testNode) Disconnect(err error) {}
func (n *testNode) IdentityKey() *btcec.PublicKey {
return n.addr.IdentityKey
}