Slack Coder
10d8519101
node: improve ping/pong tests
...
Signed-off-by: Slack Coder <slackcoder@server.ky >
2022-10-18 17:23:31 +02:00
Alexis Sellier
09c438f8fb
Remove Envelope type
...
This type that was wrapping `Message` isn't very useful here.
If we decide that we do need something like that, it's best handled one
layer below.
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-10-18 16:45:10 +02:00
Alexis Sellier
156a3a576a
Enforce max size for Message type on wire
...
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-10-18 15:44:06 +02:00
Alexis Sellier
f5e881b5a9
Move message size constant to Message type
...
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-10-18 13:06:45 +02:00
Alexis Sellier
c306392d13
Improve wire module
...
* Set `Size` correctly to `u16`
* Remove `usize` support, since it's OS-dependent
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-10-18 13:04:12 +02:00
Slack Coder
14690d1951
Service: drop unresponsive peers
...
Use pings to check connection health with network peers and drop them if
they prove unresponsive.
Signed-off-by: Slack Coder <slackcoder@server.ky >
2022-10-17 10:22:43 -05:00
Alexis Sellier
07add86bb6
node: Handle node announcements
...
To build an address book, peers communicate via gossip, sending
`NodeAnnouncement` messages.
These need to be handled by storing the addresses in an address book
and the addresses need to be persisted to disk.
Node announcement messages should also be relayed to peers like other
gossip messages.
2022-10-14 11:58:17 +02:00
Alexis Sellier
af06ad6451
Use message timestamp for filtering
...
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-09-29 10:48:41 +02:00
Alexis Sellier
e35ec2f715
Rebroadcast logic for stored gossip messages
...
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-09-29 10:02:52 +02:00
Alexis Sellier
7169881849
Remove peer timestamp
...
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-09-22 18:17:51 +02:00
Alexis Sellier
d1ccf1b807
node: Rename folder to radicle-node
...
Signed-off-by: Alexis Sellier <alexis@radicle.xyz >
2022-09-21 11:38:09 +02:00