diff options
Diffstat (limited to 'src/api/events.rs')
| -rw-r--r-- | src/api/events.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/events.rs b/src/api/events.rs index 214882a..b13de63 100644 --- a/src/api/events.rs +++ b/src/api/events.rs @@ -81,7 +81,8 @@ fn why(refusal: &Refusal) -> String { } } -/// `GET /events`: the store's ID, its checkpoint's, its heads, how many events it took +/// `GET /events`: the store's ID, its checkpoint's, its heads, as many as an event may +/// name, what a new event builds on (`Store::building_on`), how many events it took /// after its checkpoint, the event it stopped at, if any, the node's party, and whether /// the node votes for it by itself. async fn summary(State(state): State<AppState>) -> Response { @@ -94,7 +95,7 @@ async fn summary(State(state): State<AppState>) -> Response { json!({ "store": store.id().to_string(), "checkpoint": Id::of(store.checkpoint()).to_string(), - "heads": ids(store.heads()), + "heads": ids(store.building_on()), "taken": store.taken().len(), "stopped": stopped, "party": party, |
