diff options
| author | tv <tv@krebsco.de> | 2026-11-18 20:12:04 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-18 21:17:57 +0100 |
| commit | 7404dcef34dbad11a5ac2a6b8a27836b01c82635 (patch) | |
| tree | 9f2f55ad01130e454f6c6e9f308b459caadea6e9 /src/api/dashboard/check.js | |
| parent | 657765cc512743c248d71b852b4f2e81fa124af7 (diff) | |
events: why no party's client backs a proposal
`GET /events/counts` gives each proposal on the current version `none`: why a party's
client backs it not (`client::backable`), where it is no version as this node reads it,
none changing the current one, or one naming the heads of the current one's checkpoint;
else `null`. So a node shows that a proposal is none, and why, before it passes: one that
passes all the same is never written, or, no version here, the node stops at its version
event. The dashboard shows it with the proposal, and `continuum-party proposals` says it
by the federation the client knows.
Row 48's test checks what a node shows of the proposal.
Diffstat (limited to 'src/api/dashboard/check.js')
| -rw-r--r-- | src/api/dashboard/check.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/api/dashboard/check.js b/src/api/dashboard/check.js index 125fc3b..ee37aa6 100644 --- a/src/api/dashboard/check.js +++ b/src/api/dashboard/check.js @@ -103,7 +103,9 @@ const check = (ok, what) => { values: { "home/tv/motd": "hello", "home/tv/hosts/laptop": { ip6: "42::1" } }, members: [["continuum:a", "tv"]], proposals: { "22": { proposals: ["cc"], votes: ["dd"], yes: ["tv"], no: [], - passed: false, dead: false } } }; + passed: false, dead: false, none: null }, + "33": { proposals: ["ee"], votes: [], yes: [], no: [], passed: false, dead: false, + none: "no version: of federation 2, and this continuum knows 1 alone" } } }; federation.refused = { own: [], dropped: [], refused: [] }; federation.versions.set("22", next); showFederation(); @@ -128,7 +130,10 @@ const check = (ok, what) => { && federated.text.includes('keys.lass: {"keys":["ssh-ed25519 AAAA2"],"since":0} -> ' + '{"keys":["ssh-ed25519 AAAA3"],"since":1}'), "a proposal: where it stands, and what its version changes, party by party"); - check(federated.votes === 2, "a proposal that can still pass has a vote of each kind"); + check(federated.votes === 4, "a proposal that can still pass has a vote of each kind"); + check(federated.text.includes("Backed by no client: no version: of federation 2") + && (federated.text.match(/Backed by no client/g) || []).length === 1, + "a proposal that is no version says why no client backs it"); check(!federated.text.includes("stopped at") && federated.stopped.includes("stopped at ee") && federated.stopped.includes("4 held back"), "a store that stopped: the event it stopped at, why, and how many it holds back"); |
