Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: add block command to control socket
Merged ade opened 2 months ago

Introduces the ability to explicitly block a peer via the node control socket. Previously, the node only exposed follow and unfollow commands. While the underlying policy database schema supported a Block variant, there was no mechanism to trigger this state via the client handle.

The new block command:

  1. Updates the node’s follow policy to Block.
  2. Immediately disconnects the peer if a session is active.
  3. Prevents future inbound and outbound connections to that peer.
  4. Filters the peer out of the available peers list.
ade opened with revision 2488ccf5 on base 03bbe524 +78 -5 2 months ago

Introduces the ability to explicitly block a peer via the node control socket. Previously, the node only exposed follow and unfollow commands. While the underlying policy database schema supported a Block variant, there was no mechanism to trigger this state via the client handle.

The new block command:

  1. Updates the node’s follow policy to Block.
  2. Immediately disconnects the peer if a session is active.
  3. Prevents future inbound and outbound connections to that peer.
  4. Filters the peer out of the available peers list.
fintohaps pushed revision 2 18aeacab on base 03bbe524 +91 -5 2 months ago

REVIEW

ade pushed revision 3 d4e35458 on base fa94638a +91 -5 2 months ago
ade pushed revision 4 3f298d3e on base 0e9d7607 +173 -5 2 months ago
fintohaps pushed revision 5 514066a7 on base 0e9d7607 +180 -6 2 months ago

Changes:

  • Squash review commits into their respective parents
  • Split the changes between adding the command and making changes to the service
  • Emit Event::PeerDisconnected instead of Event::PeerConnected in Service::connected, when peer is blocked
  • Adds fix to test harness code to allow for the case of a blocked peer
lorenz pushed revision 6 bf3a35bb on base 4286590f +180 -6 2 months ago

Rebase

lorenz merged revision bf3a35bb at d88ef3fa 2 months ago