mirror of
https://github.com/ratspeak/rsLXMF
synced 2026-11-22 23:10:35 +00:00
lxmf: report LXMF 1.3.1
This commit is contained in:
1 parent
eae4fd50a4
commit
932d59ab74
2 files changed
+3
-2
No files matched your search
@@ -91,7 +91,7 @@ pub const PN_META_VERSION: u8 = 0x00;
|
||||
/// The LXMF release this port follows. A propagation node announces it as
|
||||
/// its [`PN_META_VERSION`], where upstream announces `LXMF.__version__`
|
||||
/// (LXMRouter.py, `get_propagation_node_announce_metadata`).
|
||||
pub const LXMF_COMPAT_VERSION: &str = "1.3.0";
|
||||
pub const LXMF_COMPAT_VERSION: &str = "1.3.1";
|
||||
pub const PN_META_NAME: u8 = 0x01;
|
||||
pub const PN_META_SYNC_STRATUM: u8 = 0x02;
|
||||
pub const PN_META_SYNC_THROTTLE: u8 = 0x03;
|
||||
|
||||
@@ -482,10 +482,11 @@ mod tests {
|
||||
data.set_name("Node");
|
||||
|
||||
// Upstream metadata order: 0xFE impl name, 0x00 version, then binary 0x01 name.
|
||||
// `LXMRouter.get_propagation_node_app_data` at LXMF 1.3.1, `time.time` fixed to the timebase.
|
||||
assert_eq!(
|
||||
hex::encode(propagation_announce_app_data(&data)),
|
||||
concat!(
|
||||
"98c2ce6553f100c3cd0100cd28009311031383ccfea46c786d6400a5312e332e3001c4044e6f6465",
|
||||
"98c2ce6553f100c3cd0100cd28009311031383ccfea46c786d6400a5312e332e3101c4044e6f6465",
|
||||
"93cb4030400000000000cb4008000000000000cb4032800000000000"
|
||||
)
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user