node: add more tests for refs relay

Signed-off-by: Alexis Sellier <alexis@radicle.xyz>
This commit is contained in:
Alexis Sellier
2022-10-14 18:51:53 +02:00
parent ba95725028
commit d9517cc966
5 changed files with 152 additions and 27 deletions
+10
View File
@@ -122,6 +122,16 @@ pub struct Subscribe {
pub until: Timestamp,
}
impl Subscribe {
pub fn all() -> Self {
Self {
filter: Filter::default(),
since: Timestamp::MIN,
until: Timestamp::MAX,
}
}
}
/// Node announcing itself to the network.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct NodeAnnouncement {