diff options
Diffstat (limited to 'src/federation/party.rs')
| -rw-r--r-- | src/federation/party.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/federation/party.rs b/src/federation/party.rs index 162f8bd..655d4c2 100644 --- a/src/federation/party.rs +++ b/src/federation/party.rs @@ -734,6 +734,20 @@ async fn vote( let kept = record .may_vote(¤t, proposal, &proposed, yes, &nays) .map_err(|why| anyhow!(why))?; + if yes { + let parties = |what: &str| -> BTreeSet<String> { + ballots[proposal.to_string()][what] + .as_array() + .into_iter() + .flatten() + .filter_map(|party| party.as_str().map(str::to_owned)) + .collect() + }; + if let Some(why) = client::binding(¤t, &signer.party, &parties("yes"), &parties("no")) + { + eprintln!("Warning: {why}"); + } + } // On the events proposing it the node shows, those above the heads it names for a // checkpoint, so a version event may be written on it. let cast = signer.sign(&proposals, event::vote(current.hash, proposal, yes))?; |
