-
Notifications
You must be signed in to change notification settings - Fork 921
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
Implement the rendezvous protocol #2107
Commits on May 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 047840d - Browse repository at this point
Copy the full SHA 047840dView commit details
Commits on May 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 76f57bd - Browse repository at this point
Copy the full SHA 76f57bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for aed2f95 - Browse repository at this point
Copy the full SHA aed2f95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61b7343 - Browse repository at this point
Copy the full SHA 61b7343View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88d6fca - Browse repository at this point
Copy the full SHA 88d6fcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for e191a3d - Browse repository at this point
Copy the full SHA e191a3dView commit details
Commits on May 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f728821 - Browse repository at this point
Copy the full SHA f728821View commit details
Commits on May 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 87df759 - Browse repository at this point
Copy the full SHA 87df759View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c61db0 - Browse repository at this point
Copy the full SHA 5c61db0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5428d7f - Browse repository at this point
Copy the full SHA 5428d7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a12627 - Browse repository at this point
Copy the full SHA 7a12627View commit details -
Configuration menu - View commit details
-
Copy full SHA for c94e215 - Browse repository at this point
Copy the full SHA c94e215View commit details
Commits on May 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 193c016 - Browse repository at this point
Copy the full SHA 193c016View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a9aae3 - Browse repository at this point
Copy the full SHA 5a9aae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a15296e - Browse repository at this point
Copy the full SHA a15296eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4208a02 - Browse repository at this point
Copy the full SHA 4208a02View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5ea66b - Browse repository at this point
Copy the full SHA d5ea66bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2166e7e - Browse repository at this point
Copy the full SHA 2166e7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bbf56d - Browse repository at this point
Copy the full SHA 4bbf56dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c36ac8b - Browse repository at this point
Copy the full SHA c36ac8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b45688d - Browse repository at this point
Copy the full SHA b45688dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dc2580 - Browse repository at this point
Copy the full SHA 1dc2580View commit details -
Configuration menu - View commit details
-
Copy full SHA for e079510 - Browse repository at this point
Copy the full SHA e079510View commit details -
Configuration menu - View commit details
-
Copy full SHA for a03868a - Browse repository at this point
Copy the full SHA a03868aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 436682e - Browse repository at this point
Copy the full SHA 436682eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32a504b - Browse repository at this point
Copy the full SHA 32a504bView commit details -
Prepare everything for writing tests
Pull in all the code that creates and connects the test swarms that include the behaviour to be tested. A first initial test stub is there, but no test functionality added yet.
Configuration menu - View commit details
-
Copy full SHA for e377d5d - Browse repository at this point
Copy the full SHA e377d5dView commit details
Commits on May 31, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f925f26 - Browse repository at this point
Copy the full SHA f925f26View commit details -
Configuration menu - View commit details
-
Copy full SHA for a61742a - Browse repository at this point
Copy the full SHA a61742aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b39449d - Browse repository at this point
Copy the full SHA b39449dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d6fc13f - Browse repository at this point
Copy the full SHA d6fc13fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2edc167 - Browse repository at this point
Copy the full SHA 2edc167View commit details -
Configuration menu - View commit details
-
Copy full SHA for d590741 - Browse repository at this point
Copy the full SHA d590741View commit details
Commits on Jun 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 81388db - Browse repository at this point
Copy the full SHA 81388dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 404b484 - Browse repository at this point
Copy the full SHA 404b484View commit details -
Configuration menu - View commit details
-
Copy full SHA for a89cffc - Browse repository at this point
Copy the full SHA a89cffcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ffaa5f - Browse repository at this point
Copy the full SHA 4ffaa5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 585e4a7 - Browse repository at this point
Copy the full SHA 585e4a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20ce11f - Browse repository at this point
Copy the full SHA 20ce11fView commit details
Commits on Jun 2, 2021
-
Added debug prints, Handler not being polled?
The protocol handler is being spawned once during initialisation and then again during the test phase. This seems weird?
Configuration menu - View commit details
-
Copy full SHA for b484718 - Browse repository at this point
Copy the full SHA b484718View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f923c2 - Browse repository at this point
Copy the full SHA 6f923c2View commit details
Commits on Jun 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6a4bbec - Browse repository at this point
Copy the full SHA 6a4bbecView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1c2d17 - Browse repository at this point
Copy the full SHA e1c2d17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7796a69 - Browse repository at this point
Copy the full SHA 7796a69View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2f89cf - Browse repository at this point
Copy the full SHA f2f89cfView commit details
Commits on Jun 4, 2021
-
Hack: Return poll ready to force swarm to be polled
This hack fix makes the outbound state move past PendingSend. Emitting a Poll::Ready from the behaviour after sending the response to the register request seems to make the swarm get polled? The register swarm still is not emitting a SucesfullyRegisteredWithRendezvous node event.
Configuration menu - View commit details
-
Copy full SHA for dbd6745 - Browse repository at this point
Copy the full SHA dbd6745View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b22d16 - Browse repository at this point
Copy the full SHA 7b22d16View commit details -
Replace emission of dummy event with ResponseSent
The register test is now passing. It seems that emitting a wrong/dummy event was resulting in a corrupted state. After making a ResponseSent event the specifically for the purpose notifying the swarm and handler that a response has been sent on an inbound stream fixed the hanging test.
Configuration menu - View commit details
-
Copy full SHA for a00b3f8 - Browse repository at this point
Copy the full SHA a00b3f8View commit details
Commits on Jun 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 69a00cf - Browse repository at this point
Copy the full SHA 69a00cfView commit details -
For this we had to fix several problems: 1. In the connection setup, we needed to wait for _both_ swarms to emit `ConnectionEstablished`. 2. In the inject_event implementation, we needed to emit the `NotifyHandler` event first because otherwise, the swarm would stop getting polled because we already have an event.
Configuration menu - View commit details
-
Copy full SHA for c0599c8 - Browse repository at this point
Copy the full SHA c0599c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57d471d - Browse repository at this point
Copy the full SHA 57d471dView commit details -
Remove hack fix to trigger Swarm::poll()
The ResponseSent dummy message hack is no longer required after the changes introduced in c0599c8
Configuration menu - View commit details
-
Copy full SHA for 624a72b - Browse repository at this point
Copy the full SHA 624a72bView commit details
Commits on Jun 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1f5251a - Browse repository at this point
Copy the full SHA 1f5251aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 94b5dbe - Browse repository at this point
Copy the full SHA 94b5dbeView commit details -
Infer addresses to register from external addresses
To actually register an address now, we need to tell the Swarm about our external address.
Configuration menu - View commit details
-
Copy full SHA for 10ee7e5 - Browse repository at this point
Copy the full SHA 10ee7e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26d1ac6 - Browse repository at this point
Copy the full SHA 26d1ac6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32b05a1 - Browse repository at this point
Copy the full SHA 32b05a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fc8583 - Browse repository at this point
Copy the full SHA 5fc8583View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24a0c0d - Browse repository at this point
Copy the full SHA 24a0c0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for dec5a43 - Browse repository at this point
Copy the full SHA dec5a43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c3bbaa - Browse repository at this point
Copy the full SHA 0c3bbaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c9c83e - Browse repository at this point
Copy the full SHA 5c9c83eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b766951 - Browse repository at this point
Copy the full SHA b766951View commit details -
Configuration menu - View commit details
-
Copy full SHA for a89b28d - Browse repository at this point
Copy the full SHA a89b28dView commit details -
Configuration menu - View commit details
-
Copy full SHA for acc6583 - Browse repository at this point
Copy the full SHA acc6583View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ef3539 - Browse repository at this point
Copy the full SHA 1ef3539View commit details -
Configuration menu - View commit details
-
Copy full SHA for f42ac18 - Browse repository at this point
Copy the full SHA f42ac18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bb25b9 - Browse repository at this point
Copy the full SHA 8bb25b9View commit details -
Introduce
Next
enum for makingState::poll
fns declarativeModelling the `poll` functions as a pure function of `State` -> `Next` makes it hopefully easier to understand what is going on here.
Configuration menu - View commit details
-
Copy full SHA for e337024 - Browse repository at this point
Copy the full SHA e337024View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6128354 - Browse repository at this point
Copy the full SHA 6128354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4806c96 - Browse repository at this point
Copy the full SHA 4806c96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e0d9da - Browse repository at this point
Copy the full SHA 7e0d9daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 939faa9 - Browse repository at this point
Copy the full SHA 939faa9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e970758 - Browse repository at this point
Copy the full SHA e970758View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35c91ab - Browse repository at this point
Copy the full SHA 35c91abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7610d3d - Browse repository at this point
Copy the full SHA 7610d3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5af486e - Browse repository at this point
Copy the full SHA 5af486eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 581cee0 - Browse repository at this point
Copy the full SHA 581cee0View commit details
Commits on Jun 9, 2021
-
Return a hashmap of registrations instead of a vector
A hashmap of (namespace, peer_id) ensures there will be no duplicate registration records. It does not make sense for there to be duplicate registration records. A Hashset would of been nice but then we would have to implement Hash etc on various types.
Configuration menu - View commit details
-
Copy full SHA for 43c8753 - Browse repository at this point
Copy the full SHA 43c8753View commit details -
Allow registration swarm to specify TTL in registration request
Assert that the TTL is correct in the tests.
Configuration menu - View commit details
-
Copy full SHA for 344123f - Browse repository at this point
Copy the full SHA 344123fView commit details -
Configuration menu - View commit details
-
Copy full SHA for faa066c - Browse repository at this point
Copy the full SHA faa066cView commit details -
Attach timestamp to the registration the record
The TTL alone is useless to the user. The timestamp allows the user calculate the absolute expiry time without breaking the tests.
Configuration menu - View commit details
-
Copy full SHA for 6908659 - Browse repository at this point
Copy the full SHA 6908659View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ebb734 - Browse repository at this point
Copy the full SHA 5ebb734View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9dd7d3 - Browse repository at this point
Copy the full SHA b9dd7d3View commit details
Commits on Jun 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0d4bd9f - Browse repository at this point
Copy the full SHA 0d4bd9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1fcdd1 - Browse repository at this point
Copy the full SHA e1fcdd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a92be31 - Browse repository at this point
Copy the full SHA a92be31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89348dc - Browse repository at this point
Copy the full SHA 89348dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for edeb5b2 - Browse repository at this point
Copy the full SHA edeb5b2View commit details -
Don't return namespace from
Registrations::add
We pass the namespace in, there is no need to return it.
Configuration menu - View commit details
-
Copy full SHA for 3a62bee - Browse repository at this point
Copy the full SHA 3a62beeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5349d93 - Browse repository at this point
Copy the full SHA 5349d93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c28f11 - Browse repository at this point
Copy the full SHA 4c28f11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f03f90 - Browse repository at this point
Copy the full SHA 4f03f90View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbea1ef - Browse repository at this point
Copy the full SHA fbea1efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7801601 - Browse repository at this point
Copy the full SHA 7801601View commit details -
Configuration menu - View commit details
-
Copy full SHA for e233850 - Browse repository at this point
Copy the full SHA e233850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 242d444 - Browse repository at this point
Copy the full SHA 242d444View commit details -
Use
match
with specific error variant instead of if letMatching against the specific error variants will produce a compile error (non-exhaustive match) if anyone ever extends this enum. This is useful because it otherwise, we would erroneously send an `InvalidTtl` message to the client even though the error cause might be something completely different.
Configuration menu - View commit details
-
Copy full SHA for cc9a02e - Browse repository at this point
Copy the full SHA cc9a02eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5277f6a - Browse repository at this point
Copy the full SHA 5277f6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3240bc5 - Browse repository at this point
Copy the full SHA 3240bc5View commit details -
Allow tests to run in parallel
These tests share the same thread and hence we should only try to initialize the logger once.
Configuration menu - View commit details
-
Copy full SHA for 2d96943 - Browse repository at this point
Copy the full SHA 2d96943View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58ce18e - Browse repository at this point
Copy the full SHA 58ce18eView commit details
Commits on Jun 11, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 29b9fb1 - Browse repository at this point
Copy the full SHA 29b9fb1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36d7039 - Browse repository at this point
Copy the full SHA 36d7039View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1241d77 - Browse repository at this point
Copy the full SHA 1241d77View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb39c2c - Browse repository at this point
Copy the full SHA fb39c2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0251bd4 - Browse repository at this point
Copy the full SHA 0251bd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 799103e - Browse repository at this point
Copy the full SHA 799103eView commit details -
Configuration menu - View commit details
-
Copy full SHA for dde489d - Browse repository at this point
Copy the full SHA dde489dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a59a60d - Browse repository at this point
Copy the full SHA a59a60dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9ab281 - Browse repository at this point
Copy the full SHA a9ab281View commit details -
Configuration menu - View commit details
-
Copy full SHA for de19fda - Browse repository at this point
Copy the full SHA de19fdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for be4bea0 - Browse repository at this point
Copy the full SHA be4bea0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b33d7d5 - Browse repository at this point
Copy the full SHA b33d7d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65d0ba6 - Browse repository at this point
Copy the full SHA 65d0ba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 000360c - Browse repository at this point
Copy the full SHA 000360cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f0e4c4 - Browse repository at this point
Copy the full SHA 2f0e4c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a4d747 - Browse repository at this point
Copy the full SHA 8a4d747View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9ca692 - Browse repository at this point
Copy the full SHA b9ca692View commit details -
Configuration menu - View commit details
-
Copy full SHA for 444e7a1 - Browse repository at this point
Copy the full SHA 444e7a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09ad250 - Browse repository at this point
Copy the full SHA 09ad250View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee74706 - Browse repository at this point
Copy the full SHA ee74706View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15e0c67 - Browse repository at this point
Copy the full SHA 15e0c67View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5a5364 - Browse repository at this point
Copy the full SHA b5a5364View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4c8795 - Browse repository at this point
Copy the full SHA c4c8795View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf8135f - Browse repository at this point
Copy the full SHA cf8135fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a2bc6d - Browse repository at this point
Copy the full SHA 7a2bc6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for eca21a5 - Browse repository at this point
Copy the full SHA eca21a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42ead09 - Browse repository at this point
Copy the full SHA 42ead09View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebc6f03 - Browse repository at this point
Copy the full SHA ebc6f03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f3156f - Browse repository at this point
Copy the full SHA 1f3156fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 79a49dd - Browse repository at this point
Copy the full SHA 79a49ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for f59cdcf - Browse repository at this point
Copy the full SHA f59cdcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ae1cd9 - Browse repository at this point
Copy the full SHA 3ae1cd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a461c58 - Browse repository at this point
Copy the full SHA a461c58View commit details -
Rename event variants to be more event-y
Instead of being a sentence like `FailedToDiscover`, we say `DiscoverFailed` which means that the DISCOVER request failed.
Configuration menu - View commit details
-
Copy full SHA for 55be51f - Browse repository at this point
Copy the full SHA 55be51fView commit details -
Return namespace in result events of behaviour
This allows us to associate a successful / failed register or discover response with the initial request. To achieve this, we need to keep track of the message we sent on a given substream. This introduces some duplication in the event modelling because we can no longer just pass up the message we read from a substream to the behaviour. Interestingly though, modelling this out better has an interesting benefit in that we can now fully validate, that the incoming message fits to what we originally sent. Previously, a rouge rendezvous node could respond with a complete garbage message (like a successful registration on a DISCOVER msg) and we would have processed it as if it would have been expected.
Configuration menu - View commit details
-
Copy full SHA for 4da0f53 - Browse repository at this point
Copy the full SHA 4da0f53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43f14f9 - Browse repository at this point
Copy the full SHA 43f14f9View commit details -
Model success and error message variants using
Result
This reduces the number of variants.
Configuration menu - View commit details
-
Copy full SHA for 82b5d78 - Browse repository at this point
Copy the full SHA 82b5d78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ccfbad - Browse repository at this point
Copy the full SHA 4ccfbadView commit details
Commits on Jun 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 56c92c2 - Browse repository at this point
Copy the full SHA 56c92c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5484c21 - Browse repository at this point
Copy the full SHA 5484c21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3161547 - Browse repository at this point
Copy the full SHA 3161547View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13df0d7 - Browse repository at this point
Copy the full SHA 13df0d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 912fcec - Browse repository at this point
Copy the full SHA 912fcecView commit details
Commits on Jun 16, 2021
-
Extend
Advance
with arbitrary paramsThis allows us to store the history of sent messages outside the state which simplifies the actual state definition.
Configuration menu - View commit details
-
Copy full SHA for 11647a0 - Browse repository at this point
Copy the full SHA 11647a0View commit details
Commits on Jun 17, 2021
-
Refactor
Advance
to make use of ResultThis allows us to use `?` inside the state transitions.
Configuration menu - View commit details
-
Copy full SHA for 756fdb5 - Browse repository at this point
Copy the full SHA 756fdb5View commit details -
Make sure we always talk to the same handler
Our substreams are stateful, we need to make sure we send the event to the right one.
Configuration menu - View commit details
-
Copy full SHA for 28c0cfb - Browse repository at this point
Copy the full SHA 28c0cfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a23829c - Browse repository at this point
Copy the full SHA a23829cView commit details
Commits on Jun 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a582ea9 - Browse repository at this point
Copy the full SHA a582ea9View commit details -
Clear registrations_for_peer upon expiry
Use bidirectional hashmap to allow efficient removal of registrations_for_peer upon expiry. Add proper registrations expired event.
Configuration menu - View commit details
-
Copy full SHA for 9923698 - Browse repository at this point
Copy the full SHA 9923698View commit details -
Create 2 registrations. One expires while the other remains alive.
Configuration menu - View commit details
-
Copy full SHA for 1b36d74 - Browse repository at this point
Copy the full SHA 1b36d74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f0cc7f - Browse repository at this point
Copy the full SHA 6f0cc7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2f779d - Browse repository at this point
Copy the full SHA e2f779dView commit details -
Ensure next_expiry.poll_next() cannot return None
FuturesUnordered stop polling for ready futures when poll_next() is called until a None value is returned. To prevent the next_expiry future from going to "sleep", next_expiry is initialised with a future that always returns pending. This test ensures that FuturesUnordered does not stop polling for ready futures.
Configuration menu - View commit details
-
Copy full SHA for 7312592 - Browse repository at this point
Copy the full SHA 7312592View commit details -
Use tokio::test to fix broken tests
6f0cc7f introduced tokio/async. tokio::test is now required for tests that use Registrations
Configuration menu - View commit details
-
Copy full SHA for e560e24 - Browse repository at this point
Copy the full SHA e560e24View commit details -
Fix bug where new registration was not being added
The registration for a peer should be inserted regardless of whether an entry already exists.
Configuration menu - View commit details
-
Copy full SHA for 69dfbee - Browse repository at this point
Copy the full SHA 69dfbeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for bdc102e - Browse repository at this point
Copy the full SHA bdc102eView commit details -
Switch registrations in cookies to a HashSet
They should be unique and a hashset is going to help us in tracking which elements we can remove.
Configuration menu - View commit details
-
Copy full SHA for b8a93c3 - Browse repository at this point
Copy the full SHA b8a93c3View commit details
Commits on Jun 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c4f802f - Browse repository at this point
Copy the full SHA c4f802fView commit details
Commits on Jun 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d31ebff - Browse repository at this point
Copy the full SHA d31ebffView commit details -
Remove redundant field from PeerRegistered
Move tokio dependency to allow code to build.
Configuration menu - View commit details
-
Copy full SHA for 1fe1e3d - Browse repository at this point
Copy the full SHA 1fe1e3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 476ddc7 - Browse repository at this point
Copy the full SHA 476ddc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93846e1 - Browse repository at this point
Copy the full SHA 93846e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 61f4dbb - Browse repository at this point
Copy the full SHA 61f4dbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e39c304 - Browse repository at this point
Copy the full SHA e39c304View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85a0751 - Browse repository at this point
Copy the full SHA 85a0751View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bf0689 - Browse repository at this point
Copy the full SHA 2bf0689View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6a02b5 - Browse repository at this point
Copy the full SHA b6a02b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbeb6f3 - Browse repository at this point
Copy the full SHA bbeb6f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a67051 - Browse repository at this point
Copy the full SHA 4a67051View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17924e7 - Browse repository at this point
Copy the full SHA 17924e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46c058c - Browse repository at this point
Copy the full SHA 46c058cView commit details
Commits on Jun 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6d4a915 - Browse repository at this point
Copy the full SHA 6d4a915View commit details -
Node trying to register does not know its external address
Configuration menu - View commit details
-
Copy full SHA for e87c5b8 - Browse repository at this point
Copy the full SHA e87c5b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdd2cc4 - Browse repository at this point
Copy the full SHA bdd2cc4View commit details
Commits on Jun 23, 2021
-
Remove unnecessary naming of field in single field struct variant
The name of the newtype is descriptive enough, we can be more concise by not naming the field.
Configuration menu - View commit details
-
Copy full SHA for 26b2ac1 - Browse repository at this point
Copy the full SHA 26b2ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3b1de5 - Browse repository at this point
Copy the full SHA c3b1de5View commit details -
Configuration menu - View commit details
-
Copy full SHA for eae577b - Browse repository at this point
Copy the full SHA eae577bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24c0322 - Browse repository at this point
Copy the full SHA 24c0322View commit details -
Make all modules private and only expose particular structs
This should help us detect dead code better.
Configuration menu - View commit details
-
Copy full SHA for ee53ba1 - Browse repository at this point
Copy the full SHA ee53ba1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd68a75 - Browse repository at this point
Copy the full SHA cd68a75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dfba09 - Browse repository at this point
Copy the full SHA 0dfba09View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6cd3b9 - Browse repository at this point
Copy the full SHA f6cd3b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c25f554 - Browse repository at this point
Copy the full SHA c25f554View commit details -
Prefer async fn main over task::block_on
Reduces levels of indentation and is easier to grasp in general.
Configuration menu - View commit details
-
Copy full SHA for 5d29f74 - Browse repository at this point
Copy the full SHA 5d29f74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77ee0ad - Browse repository at this point
Copy the full SHA 77ee0adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 189dfde - Browse repository at this point
Copy the full SHA 189dfdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b873f23 - Browse repository at this point
Copy the full SHA b873f23View commit details -
Make discover and register share a common protocol
The whole point of the rendezvous protocol is for two nodes with common protocols to find each other. We showcase this using the ping protocol that allows peers to measure the latency of their network connection.
Configuration menu - View commit details
-
Copy full SHA for 7a452aa - Browse repository at this point
Copy the full SHA 7a452aaView commit details -
Make register example listen on a random port
This showcases better that we automatically discover our external address.
Configuration menu - View commit details
-
Copy full SHA for 5d8f42f - Browse repository at this point
Copy the full SHA 5d8f42fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec79ba6 - Browse repository at this point
Copy the full SHA ec79ba6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3270ca - Browse repository at this point
Copy the full SHA a3270caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fdb340 - Browse repository at this point
Copy the full SHA 0fdb340View commit details -
Add Ping behaviour to rendezvous point
Otherwise the connection is being closed automatically. We don't want the logs to be spammed by pings to the rendezvous point though because the examples are here to showcase two nodes connecting through the rendezvous node.
Configuration menu - View commit details
-
Copy full SHA for dae0f6e - Browse repository at this point
Copy the full SHA dae0f6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7776b37 - Browse repository at this point
Copy the full SHA 7776b37View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1b763a - Browse repository at this point
Copy the full SHA f1b763aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d14c5b - Browse repository at this point
Copy the full SHA 6d14c5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2a0c6f - Browse repository at this point
Copy the full SHA b2a0c6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b34b099 - Browse repository at this point
Copy the full SHA b34b099View commit details -
Configuration menu - View commit details
-
Copy full SHA for 798d5ab - Browse repository at this point
Copy the full SHA 798d5abView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5a968c - Browse repository at this point
Copy the full SHA c5a968cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bdc277 - Browse repository at this point
Copy the full SHA 7bdc277View commit details -
Model
inject_event
implementation of mapping to new eventsThis avoids the repetition of `self.events.{push, extend}`.
Configuration menu - View commit details
-
Copy full SHA for ea20273 - Browse repository at this point
Copy the full SHA ea20273View commit details -
Configuration menu - View commit details
-
Copy full SHA for 531570e - Browse repository at this point
Copy the full SHA 531570eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fad3941 - Browse repository at this point
Copy the full SHA fad3941View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9600210 - Browse repository at this point
Copy the full SHA 9600210View commit details -
Introduce
Namespace
newtype to capture max-length invariantAdditionally, this allows us to convert some of our enum struct variants to tuple variants because the name of the type conveys the same amount of information as a fieldname.
Configuration menu - View commit details
-
Copy full SHA for 6aa4c36 - Browse repository at this point
Copy the full SHA 6aa4c36View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0eaa41 - Browse repository at this point
Copy the full SHA e0eaa41View commit details
Commits on Jun 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4705877 - Browse repository at this point
Copy the full SHA 4705877View commit details
Commits on Jun 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for c3cd411 - Browse repository at this point
Copy the full SHA c3cd411View commit details
Commits on Jul 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2e143a0 - Browse repository at this point
Copy the full SHA 2e143a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c3b010 - Browse repository at this point
Copy the full SHA 8c3b010View commit details -
Use
wasm-timer
instead oftokio
This should allow us to compile on wasm and also removes the need to mark some tests as `async` even though they don't use `await`.
Configuration menu - View commit details
-
Copy full SHA for 622484d - Browse repository at this point
Copy the full SHA 622484dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4a66bd - Browse repository at this point
Copy the full SHA b4a66bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a16136 - Browse repository at this point
Copy the full SHA 0a16136View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cacaf2 - Browse repository at this point
Copy the full SHA 4cacaf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 952fde2 - Browse repository at this point
Copy the full SHA 952fde2View commit details
Commits on Jul 2, 2021
-
Configuration menu - View commit details
-
Copy full SHA for da0e761 - Browse repository at this point
Copy the full SHA da0e761View commit details -
Configuration menu - View commit details
-
Copy full SHA for 082dfd0 - Browse repository at this point
Copy the full SHA 082dfd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3628cf - Browse repository at this point
Copy the full SHA d3628cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f46361 - Browse repository at this point
Copy the full SHA 8f46361View commit details -
Configuration menu - View commit details
-
Copy full SHA for 326c9b2 - Browse repository at this point
Copy the full SHA 326c9b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3df6e52 - Browse repository at this point
Copy the full SHA 3df6e52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 802b152 - Browse repository at this point
Copy the full SHA 802b152View commit details -
Store discovered addresses inside behaviour
This makes it easier for callers to directly interact with peers they discovered via a rendezvous point.
Configuration menu - View commit details
-
Copy full SHA for 74a39f4 - Browse repository at this point
Copy the full SHA 74a39f4View commit details
Commits on Jul 8, 2021
-
Add register example that doesnt use the Identify protocol
The external address is specified manually.
Configuration menu - View commit details
-
Copy full SHA for 4af8af7 - Browse repository at this point
Copy the full SHA 4af8af7View commit details
Commits on Aug 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for e646e47 - Browse repository at this point
Copy the full SHA e646e47View commit details
Commits on Aug 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5f10abf - Browse repository at this point
Copy the full SHA 5f10abfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ec294f - Browse repository at this point
Copy the full SHA 7ec294fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c56ab55 - Browse repository at this point
Copy the full SHA c56ab55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88fa94b - Browse repository at this point
Copy the full SHA 88fa94bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1b61a6 - Browse repository at this point
Copy the full SHA f1b61a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3fdd0b - Browse repository at this point
Copy the full SHA c3fdd0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b1dda8 - Browse repository at this point
Copy the full SHA 9b1dda8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 433b3b5 - Browse repository at this point
Copy the full SHA 433b3b5View commit details
Commits on Sep 1, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d85e38b - Browse repository at this point
Copy the full SHA d85e38bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5cb328 - Browse repository at this point
Copy the full SHA d5cb328View commit details -
Allow registrations on client to expire
This avoids a memory leak of addresses that are no longer relevant.
Configuration menu - View commit details
-
Copy full SHA for 8115ec3 - Browse repository at this point
Copy the full SHA 8115ec3View commit details -
Configuration menu - View commit details
-
Copy full SHA for dccdebc - Browse repository at this point
Copy the full SHA dccdebcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d6bf59 - Browse repository at this point
Copy the full SHA 7d6bf59View commit details
Commits on Sep 2, 2021
-
This makes compilation on wasm simpler.
Configuration menu - View commit details
-
Copy full SHA for e3ff6c2 - Browse repository at this point
Copy the full SHA e3ff6c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f46f84 - Browse repository at this point
Copy the full SHA 8f46f84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e3d4a1 - Browse repository at this point
Copy the full SHA 5e3d4a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5696a7e - Browse repository at this point
Copy the full SHA 5696a7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2637e45 - Browse repository at this point
Copy the full SHA 2637e45View commit details
Commits on Sep 7, 2021
-
- Changelogs - No default features of `libp2p-core` - Cargo metadata update
Configuration menu - View commit details
-
Copy full SHA for f8edf2f - Browse repository at this point
Copy the full SHA f8edf2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 700bcb2 - Browse repository at this point
Copy the full SHA 700bcb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2215f02 - Browse repository at this point
Copy the full SHA 2215f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53ce603 - Browse repository at this point
Copy the full SHA 53ce603View commit details