-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authorithy-discovery: Make changing of peer-id while active a bit more robust #3786
Commits on Mar 21, 2024
-
authorithy-discovery: Make changing of peer-id while active a bit mor…
…e robust In the case when nodes don't persist their node-key or they want to generate a new one while being in the active set, things go wrong because both the old addresses and the new ones will still be present in DHT, so because of the distributed nature of the DHT both will survive in the network untill the old ones expires which is 36 hours. Nodes in the network will randomly resolve the authorithy-id to the old address or the new one. More details in: #3673 This PR proposes we mitigate this problem, by: 1. Let the query for a DHT key retrieve all the results, that is usually bounded by the replication factor which is 20, currently we interrupt the querry on the first result. 2. Modify the authority-discovery service to keep all the discovered addresses around for 24h since they last seen an address. 3. Plumb through other subsystems where the assumption was that an authorithy-id will resolve only to one PeerId. Currently, the authorithy-discovery keeps just the last record it received from DHT and queries the DHT every 10 minutes. But they could always receive only the old address, only the new address or a flip-flop between them depending on what node wins the race to provide the record 4. Update gossip-support to try resolve authorities more often than every session. This would gives us a lot more chances for the nodes in the networks to also discover not only the old address of the node but also the new one and should improve the time it takes for a node to be properly connected in the network. The behaviour won't be deterministic because there is no guarantee the all nodes will see the new record at least once, since they could query only nodes that have the old one. Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0103c7f - Browse repository at this point
Copy the full SHA 0103c7fView commit details
Commits on Mar 22, 2024
-
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4172677 - Browse repository at this point
Copy the full SHA 4172677View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64f38d2 - Browse repository at this point
Copy the full SHA 64f38d2View commit details
Commits on Mar 25, 2024
-
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ce87688 - Browse repository at this point
Copy the full SHA ce87688View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd69a55 - Browse repository at this point
Copy the full SHA bd69a55View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a69ba99 - Browse repository at this point
Copy the full SHA a69ba99View commit details
Commits on Apr 1, 2024
-
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart
Configuration menu - View commit details
-
Copy full SHA for 311aade - Browse repository at this point
Copy the full SHA 311aadeView commit details
Commits on Apr 3, 2024
-
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1305763 - Browse repository at this point
Copy the full SHA 1305763View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7e16e58 - Browse repository at this point
Copy the full SHA 7e16e58View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a82ebed - Browse repository at this point
Copy the full SHA a82ebedView commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d569ab3 - Browse repository at this point
Copy the full SHA d569ab3View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1c9a40d - Browse repository at this point
Copy the full SHA 1c9a40dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 91e647c - Browse repository at this point
Copy the full SHA 91e647cView commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a53ec2 - Browse repository at this point
Copy the full SHA 0a53ec2View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ef6ddb6 - Browse repository at this point
Copy the full SHA ef6ddb6View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b3eb615 - Browse repository at this point
Copy the full SHA b3eb615View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6d4b29 - Browse repository at this point
Copy the full SHA f6d4b29View commit details -
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart
Configuration menu - View commit details
-
Copy full SHA for b41cdf7 - Browse repository at this point
Copy the full SHA b41cdf7View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1ae1759 - Browse repository at this point
Copy the full SHA 1ae1759View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b56bc8 - Browse repository at this point
Copy the full SHA 7b56bc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d610df6 - Browse repository at this point
Copy the full SHA d610df6View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4263dc4 - Browse repository at this point
Copy the full SHA 4263dc4View commit details
Commits on Apr 5, 2024
-
Add authorithy-discovery-unittests
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d7b164 - Browse repository at this point
Copy the full SHA 4d7b164View commit details -
Add unittest for gossip-support changes
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7cc3333 - Browse repository at this point
Copy the full SHA 7cc3333View commit details
Commits on Apr 17, 2024
-
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fabdb4b - Browse repository at this point
Copy the full SHA fabdb4bView commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 42afffc - Browse repository at this point
Copy the full SHA 42afffcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28ac0a2 - Browse repository at this point
Copy the full SHA 28ac0a2View commit details
Commits on Apr 24, 2024
-
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart
Configuration menu - View commit details
-
Copy full SHA for 95950a7 - Browse repository at this point
Copy the full SHA 95950a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd21fda - Browse repository at this point
Copy the full SHA bd21fdaView commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 57f1b38 - Browse repository at this point
Copy the full SHA 57f1b38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f56b02 - Browse repository at this point
Copy the full SHA 9f56b02View commit details
Commits on Apr 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6d196c4 - Browse repository at this point
Copy the full SHA 6d196c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9979f8f - Browse repository at this point
Copy the full SHA 9979f8fView commit details
Commits on Apr 30, 2024
-
Integrate with paritytech/litep2p#96
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd5dc46 - Browse repository at this point
Copy the full SHA fd5dc46View commit details
Commits on May 1, 2024
-
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 20e351e - Browse repository at this point
Copy the full SHA 20e351eView commit details -
Reconnect only if new peer ids pop-up
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 98398e3 - Browse repository at this point
Copy the full SHA 98398e3View commit details
Commits on May 2, 2024
-
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8066044 - Browse repository at this point
Copy the full SHA 8066044View commit details -
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart
Configuration menu - View commit details
-
Copy full SHA for 8eef5c3 - Browse repository at this point
Copy the full SHA 8eef5c3View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b4fe357 - Browse repository at this point
Copy the full SHA b4fe357View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97f09a3 - Browse repository at this point
Copy the full SHA 97f09a3View commit details
Commits on May 9, 2024
-
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart
Configuration menu - View commit details
-
Copy full SHA for 586a0f1 - Browse repository at this point
Copy the full SHA 586a0f1View commit details
Commits on May 12, 2024
-
Update substrate/client/network/src/litep2p/mod.rs
Co-authored-by: Dmitry Markin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 09b6306 - Browse repository at this point
Copy the full SHA 09b6306View commit details -
Update polkadot/node/network/gossip-support/src/tests.rs
Co-authored-by: Dmitry Markin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fb534b5 - Browse repository at this point
Copy the full SHA fb534b5View commit details -
Update substrate/client/authority-discovery/src/worker/tests.rs
Co-authored-by: Dmitry Markin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7399dc5 - Browse repository at this point
Copy the full SHA 7399dc5View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 17df838 - Browse repository at this point
Copy the full SHA 17df838View commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3313fd7 - Browse repository at this point
Copy the full SHA 3313fd7View commit details
Commits on May 30, 2024
-
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 999a710 - Browse repository at this point
Copy the full SHA 999a710View commit details
Commits on Jul 15, 2024
-
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart_v2
Configuration menu - View commit details
-
Copy full SHA for 3b4650a - Browse repository at this point
Copy the full SHA 3b4650aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e81ca2 - Browse repository at this point
Copy the full SHA 7e81ca2View commit details
Commits on Jul 18, 2024
-
Update substrate/client/network/src/litep2p/mod.rs
Co-authored-by: Dmitry Markin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f083318 - Browse repository at this point
Copy the full SHA f083318View commit details -
Update substrate/client/authority-discovery/src/worker.rs
Co-authored-by: Dmitry Markin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5fcc6b - Browse repository at this point
Copy the full SHA a5fcc6bView commit details -
Update substrate/client/authority-discovery/src/worker.rs
Co-authored-by: Dmitry Markin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e54c96d - Browse repository at this point
Copy the full SHA e54c96dView commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 66959dd - Browse repository at this point
Copy the full SHA 66959ddView commit details -
Update substrate/client/authority-discovery/src/worker.rs
Co-authored-by: Alexandru Vasile <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 06285ef - Browse repository at this point
Copy the full SHA 06285efView commit details -
Signed-off-by: Alexandru Gheorghe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a23fbd - Browse repository at this point
Copy the full SHA 3a23fbdView commit details
Commits on Jul 23, 2024
-
Merge remote-tracking branch 'origin/master' into alexaggh/fix_change…
…_node_id_at_restart_v3
Configuration menu - View commit details
-
Copy full SHA for 77e4061 - Browse repository at this point
Copy the full SHA 77e4061View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0256b3c - Browse repository at this point
Copy the full SHA 0256b3cView commit details
Commits on Jul 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 19054d7 - Browse repository at this point
Copy the full SHA 19054d7View commit details