aboutsummaryrefslogtreecommitdiffstats
path: root/src/federation/party.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-20 00:55:34 +0000
committertv <tv@krebsco.de>2026-11-20 02:15:09 +0100
commite31d93577ccefdf540fd3df518a7d9837cb20cbb (patch)
tree791c441a2a1936badf7056e7429748fef1367460 /src/federation/party.rs
parent637a8603775d02ef014ec84491a2bbbb5c7c4f54 (diff)
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.
Diffstat (limited to 'src/federation/party.rs')
-rw-r--r--src/federation/party.rs4
1 files changed, 2 insertions, 2 deletions
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, &current, sub).await?;
let proposed = client::backable(&current, &version)
.map_err(|why| anyhow!("not a version a party may back: {why}"))?;
- if client::described(&current, &proposed).is_empty() {
+ if client::described(&current, &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<String> {
- 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()