Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

protocols, swap: drop unincentivized peers when sending/receiving messages #2142

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mortelli
Copy link
Contributor

This PR changes the code in the sending and receiving messages functions so that peers are dropped when they are unincentivized (when the node running is not).

This can happen if the peer in question is registered in other protocols but not in SWAP.

The benefit of this change is to avoid useless message exchanges that are going to be dropped every time they accounting hook is called.

closes #1917

@mortelli
Copy link
Contributor Author

even though i still have to add a test for this, i am going to preliminary request reviews from @Eknir and @santicomp2014 as well

@mortelli mortelli requested review from Eknir and santicomp2014 March 24, 2020 11:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enforce a swap-only network
1 participant