From e31d93577ccefdf540fd3df518a7d9837cb20cbb Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 00:55:34 +0000 Subject: continuum-party: nodes by their names wherever it shows them A node goes by the name it gave itself (`--alias`), as `names` in `GET /events/counts` shows it, in what a proposal does (`show`, `proposals`, `status`, before a vote), among the nodes not known to know a revision, and at the head of `status`'s section on the node it asks, which now names that node by its ID too. A node no party lists yet has no name there: only members' entries reach the node. --- src/federation/party.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/federation/party.rs') diff --git a/src/federation/party.rs b/src/federation/party.rs index 8f5143b..8357d22 100644 --- a/src/federation/party.rs +++ b/src/federation/party.rs @@ -973,7 +973,7 @@ pub(crate) async fn main() -> Result<()> { let version = to_propose(&node, ¤t, sub).await?; let proposed = client::backable(¤t, &version) .map_err(|why| anyhow!("not a version a party may back: {why}"))?; - if client::described(¤t, &proposed).is_empty() { + if client::described(¤t, &proposed, &Default::default()).is_empty() { bail!( "it changes nothing of version {} but its number", current.number @@ -2055,7 +2055,7 @@ fn ballot_line(counts: &JsonValue, current: &Version, hash: &str, hashes: &[Stri /// (`client::described`), the places holding a value in `counts` whose writer it moves, /// and the nodes not known to know its revision. fn version_lines(counts: &JsonValue, current: &Version, proposed: &Version) -> Vec { - let mut lines = client::described(current, proposed); + let mut lines = client::described(current, proposed, &client::node_names(counts)); let places: Vec<&str> = counts["values"] .as_object() .into_iter() -- cgit v1.3.1