Skip to content
Discussion options

You must be logged in to vote

The function force_remove_relay only disconnect the relay, but you can connect to it later, the client can actually ban relays, but it's not exposed, it do it internally when an event mismatch with the subscription.

@yukibtc I think we should make it public.

Until the next release, you need to mark the relay as banned and refuse to connect to it in AdmitPolicy::admit_connection. Later when the client can ban relays, you can setup a monitor and when you get RelayStatus::Banned you update your banned relays list so the client remember them on the next run.

I think you should enable ban_relay_on_mismatch and update your list when a relay is banned, you can also update the list when you disco…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@TheAwiteb
Comment options

Answer selected by alopatindev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants