diff options
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() |
