diff options
| author | tv <tv@krebsco.de> | 2026-11-25 15:27:53 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-25 15:27:53 +0000 |
| commit | e22f2e5c38baa1866793338fc7abde8c8e53b635 (patch) | |
| tree | f6e7225e05bc35467b638416fa8487d538d02fed /docs/openapi.yaml | |
| parent | 46fc2ab070b5f8d3cd6c8bd0d6bd15c624a061e5 (diff) | |
continuum-party vote: asks its node first whether a true is taken
A party's client recorded its vote, sent it, and only warned where its
node refused it: a true every node refuses, its party's earlier one not
dead where it builds, stayed in the record and bound the party, though no
node held it. Taking it back out on the node's word would let a node that
lies have its party vote twice.
So it asks before it signs: POST /events/back names the party, the
proposal and the events the vote would build on, and a node answers by
what it asks itself before it casts one (vote::takes_true). Nothing
signed is sent, so a node gets nothing it could pass on. Told it isn't
taken, the client casts and records nothing; a node that doesn't answer,
one before this, it says so of, and goes on as it did.
Diffstat (limited to 'docs/openapi.yaml')
| -rw-r--r-- | docs/openapi.yaml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/docs/openapi.yaml b/docs/openapi.yaml index adc5426..d3063d8 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -1812,6 +1812,50 @@ paths: $ref: '#/components/responses/Error' '422': $ref: '#/components/responses/Error' + /events/back: + post: + tags: [Events] + summary: Whether this node takes a `true` a party is about to cast + description: | + Whether this node takes a `true` of `party` on the proposal of hash `proposal` on + the current version, built on the events `on`, as far as the party's other votes + go: at that history, none of its `true`s on another proposal but on one that is + dead there. A party's client asks before it signs and records one, so that a + `true` every node refuses is never cast: nothing signed is sent for it. + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [party, proposal, on] + properties: + party: + type: string + proposal: + type: string + on: + type: array + items: + type: string + responses: + '200': + description: Whether it takes it, and why not. + content: + application/json: + schema: + type: object + required: [takes, why] + properties: + takes: + type: boolean + why: + type: string + nullable: true + '400': + $ref: '#/components/responses/Error' + '404': + $ref: '#/components/responses/Error' /admin/events/drop: post: tags: [Events] |
