Test Details Overview

Let elections report their vote as a vote_intent and decide vote replies in a handler (#5323)

* Let an election report the vote it casts as a nano::vote_intent

election::voting_for () returns the block an election votes for and
whether the vote is final, or nothing while the node does not vote or
once the election ended without a decision. The paced vote broadcast
and the final vote cast on first quorum both take their vote from it,
and vote_generator::vote takes the intent in place of a loose root,
hash and type, so the rule for what an election votes exists once.

voting_for () reads the last tally instead of re-tallying, so asking
an election for its vote leaves the election untouched.

* Decide vote replies in a vote_reply_handler apart from the replier

The new nano::vote_reply_handler turns a request into one answer per
requested block: the block held at its root, if any, and the permit of
the vote that answers for it. vote_replier keeps the queue, the
threads, the signing and the sending, and counts each answer as before.

The handler needs only a ledger and the voting policy, so its
decisions are tested against a bare ledger instead of a running node.

__________

Type: commit

Hash: 77faec61f695030bf39dcece2fb69e5518abf6e8

Created: yesterday

__________

gr0v1ty/nano-node:77faec61f695030bf39dcece2fb69e5518abf6e8

Test Results

Test Case Status Duration Median Deviation Log Graph
No test results available yet. Check the GitHub test run for job status and logs.