WIP lot V : le tampon câblé dans le serveur (migration 0010, simulation, discard-simulation), tests en cours de reprise — repris tel quel après la coupure du 02/11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-11-03 05:22:24 +01:00
co-authored by Claude Opus 5.5
parent ee37c3b4d5
commit 4b81a2e909
16 changed files with 1503 additions and 213 deletions
+5
View File
@@ -73,6 +73,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.
pub simulated_adopts: bool,
}
fn var(name: &str) -> Option<String> {
@@ -152,6 +155,7 @@ impl Config {
wot_fallback: var("LD_WOT_FALLBACK").and_then(|v| v.parse().ok()).unwrap_or(5745),
build: var("LD_BUILD").unwrap_or_else(|| "dev".into()),
vote,
simulated_adopts: ld_engine::buffer::SIMULATED_ADOPTS,
data_dir,
}
}
@@ -183,6 +187,7 @@ impl Config {
wot_fallback: 5745,
build: "test".into(),
vote: None,
simulated_adopts: ld_engine::buffer::SIMULATED_ADOPTS,
}
}
}