Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: Change behavior on conflicting connections
Merged did:key:z6MksFqX...wzpT opened 2 years ago

Instead of dropping the existing connection(s), we drop the same connection on both sides, by using a simple rule that yields the same result whether the node sees the connection as inbound or outbound.

The trick is to use something that both nodes agree on, for instance whos public key is greater than the other, and use that information to close the same connection on both sides.

did:key:z6MksFqX...wzpT opened with revision 69fab58a on base 570a7eb1 +18 -17 2 years ago

Instead of dropping the existing connection(s), we drop the same connection on both sides, by using a simple rule that yields the same result whether the node sees the connection as inbound or outbound.

The trick is to use something that both nodes agree on, for instance whos public key is greater than the other, and use that information to close the same connection on both sides.

did:key:z6MksFqX...wzpT pushed revision 2 015f9c80 on base 62fa8c25 +87 -31 2 years ago

Update to new algorithm.

did:key:z6MktaNv...ZRZW pushed revision 3 fb869387 on base 6569449f +262 -113 2 years ago

New behavior.

did:key:z6MksFqX...wzpT pushed revision 4 10040d17 on base e695d06b +273 -113 2 years ago

Improvements and rebase.

did:key:z6MksFqX...wzpT merged revision 10040d17 at f7737b73 2 years ago