radicle-heartwood-lfs/radicle/src
cloudhead ea4104dbd7
node: Only process messages from known nodes
Previously, we would process any valid inventory or refs announcement.
This could cause problems for keeping sync statuses, as we could get
a refs announcement from a node that isn't in our database.

In practice, there is no good reason why we should receive a refs or
inventory announcement before the announcer's node announcement, unless
nodes are not following the protocol.

Implementing this change meant that many of the tests needed updating,
as it wasn't assumed that a node announcement was needed before
receiving inventories etc. from a peer.

We also had to implement a basic form of node address banning to make
the tests pass after this change.
2023-11-13 16:15:57 +01:00
..
canonical Update toolchain to Rust 1.71 2023-08-09 18:49:13 +02:00
cob radicle: use git::raw::Error for reference_oid 2023-11-09 17:47:07 +01:00
identity radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
node node: Only process messages from known nodes 2023-11-13 16:15:57 +01:00
storage radicle: Simplify canonical head quorum 2023-11-10 13:42:16 +01:00
test node: minimise refs announcement to key and Oid 2023-11-09 17:47:09 +01:00
canonical.rs radicle: custom CanonicalFormatter 2023-02-24 11:59:36 +01:00
cob.rs radicle: Pin timestamp for testing 2023-10-30 14:48:38 +01:00
collections.rs Introduce `cargo-deny` 2023-08-22 14:33:00 +02:00
git.rs radicle: add Special type 2023-11-06 12:06:13 +01:00
identity.rs cob: Introduce `xyz.radicle.id` COB 2023-10-12 17:32:33 +02:00
lib.rs cob: Introduce `xyz.radicle.id` COB 2023-10-12 17:32:33 +02:00
node.rs node: Rewrite `seeds` method to use sync-status 2023-11-13 12:06:37 +01:00
profile.rs radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
rad.rs radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
serde_ext.rs radicle: Fix config deserialization 2023-08-14 10:31:35 +02:00
sql.rs node: Keep track of connection attempts 2023-05-05 17:23:52 +02:00
storage.rs radicle: use git::raw::Error for reference_oid 2023-11-09 17:47:07 +01:00
test.rs radicle: UserInfo for Repository::create 2023-11-09 16:43:34 +01:00
version.rs Add `--version` flag to binaries 2023-07-25 11:36:50 +02:00