diff options
| author | tv <tv@krebsco.de> | 2026-11-19 14:11:39 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-19 15:18:45 +0100 |
| commit | 27b76d5748f23a879d9fc82c725a58b514020ef9 (patch) | |
| tree | d0201eed80c9c4a2db3f2e6281cac51dbc126ba6 /src/api | |
| parent | 8347900a553a3c4c9f9d3fc4a539fd31b41b07d3 (diff) | |
fork: a fork's check says what its version changes, rules among it
A node holding the history up to a fork's heads said whether it builds
the root, what it holds that those heads lack, and which parties' keys
the fork's version gives otherwise. A founder could change the rules, or
only their order, which says who writes where, and nobody joining was
shown it.
The check now says what the fork's version changes of the version
current at those heads, a line each as a proposal's are shown
(`client::changes`): `changes` in POST /events/fork, and
`continuum-party check` prints them. federation.md and the forking
guide say so, and that a fork's ID is compared whole: a founder trying
versions can steer its first few digits.
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/events.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/api/events.rs b/src/api/events.rs index 45c9a32..a3781c1 100644 --- a/src/api/events.rs +++ b/src/api/events.rs @@ -399,9 +399,9 @@ async fn make_fork(State(state): State<AppState>, Json(forking): Json<Forking>) /// `POST /events/fork`: what this node finds of the fork whose root is the body's first /// line, as the file its founders start from holds it: whether it builds that root at -/// its heads, and why not; what it holds that those heads lack; and the parties whose keys -/// the fork's version gives otherwise than they had there, each with its keys there and in -/// the fork. +/// its heads, and why not; what it holds that those heads lack; what the fork's version +/// changes of the one current there, a line each; and the parties whose keys the fork's +/// version gives otherwise than they had there, each with its keys there and in the fork. async fn check_fork(State(state): State<AppState>, body: Bytes) -> Response { let (root, _) = fork::read_root_file(&body); match state.holding.with(|store| fork::check(store, &root)) { @@ -418,6 +418,7 @@ async fn check_fork(State(state): State<AppState>, body: Bytes) -> Response { "builds": check.builds, "why": check.why, "lacking": ids(check.lacking), + "changes": check.changes, "keys": keys, })) .into_response() |
