forked from yvv/decision
ADR 0012 réécrite sur les deux décisions d'Yvv : « Il compte, puis s'efface » (02/11, 06 h 26 : compte jusqu'à l'acte « supprime », réexamen sur les seuls votes prouvés, la commande et ce qu'elle écrit) et « Pas avant des votes prouvés » (03/11, 05 h 45 : la publication) ; le quorum sur les totaux montrés, « un vote existe », l'API, les données ; commentaires de la bascule et de casts_simulated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -84,8 +84,9 @@ pub struct Config {
|
||||
pub build: String,
|
||||
/// The vote on the chain; `None` = off (no `LD_VOTE_ACCOUNT`).
|
||||
pub vote: Option<VoteChain>,
|
||||
/// Whether a simulated vote counts for adoption while the chain is closed
|
||||
/// (ADR 0012): `ld_engine::buffer::SIMULATED_ADOPTS`, the default of lot V.
|
||||
/// Whether a simulated vote counts for adoption (ADR 0012):
|
||||
/// `ld_engine::buffer::SIMULATED_ADOPTS` — Yvv, 2026-11-02: « Il compte, puis
|
||||
/// s'efface »: it counts until the act « supprime » sets it aside.
|
||||
pub simulated_adopts: bool,
|
||||
}
|
||||
|
||||
|
||||
@@ -163,7 +163,8 @@ pub fn chain_vote_counts(member: bool) -> bool {
|
||||
/// ADR 0012): whoever may ask for a ballot casts a simulated vote, written by the
|
||||
/// server, marked as such, for the identity of the session — there is no wallet.
|
||||
/// One person signed in two ways may then hold two voices: accepted while the
|
||||
/// simulation lasts, every simulated vote is set aside when the chain opens.
|
||||
/// simulation lasts — Yvv, 2026-11-02: « Il compte, puis s'efface »: every
|
||||
/// simulated vote counts until an act « supprime » sets them all aside.
|
||||
pub fn casts_simulated(identity: &Identity, group: &Group, granted: bool, chain_open: bool) -> bool {
|
||||
!chain_open && asks_ballot(identity, group, granted)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user