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
2024-08-14 14:03:39 -04:00
parent 0173e4c44d
commit 99b86ba462
8 changed files with 78 additions and 30 deletions

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
}