Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Add peer protection capability #14

Merged
merged 3 commits into from
Mar 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ type ConnManager interface {
// Notifee returns an implementation that can be called back to inform of
// opened and closed connections.
Notifee() inet.Notifiee

// Protect protects a peer from having its connection(s) pruned.
Protect(peer.ID)

// Unprotect removes any protection that may have been placed on a peer.
Unprotect(peer.ID)
}

// TagInfo stores metadata associated with a peer.
Expand Down