Test Details Overview

Move the election vocabulary to nano/secure and check that lower layers include nothing from nano/node (#5324)

* Move xorshift.hpp from nano/node to nano/lib

nano/lib/work.cpp draws its work attempts from it, so the header
belongs to the lowest layer that uses it. The OpenCL work code in
nano/node is its only other user.

* Check that code below the node layer includes nothing from nano/node

Every target includes from the repository root, and the executables
built by default all link the node library. So a file in nano/lib,
nano/store or nano/secure could include a node header and still build.
The code inspector now fails on such an include and lists the
offending files.

The ledger included nano/node/make_store.hpp without using anything
from it. That include is removed, so the check passes.

* Move election pacing, behavior, status and the vote codes to nano/secure

nano::election_pacing, nano::election_behavior, nano::election_status
and nano::election_extended_status move from nano/node to nano/secure,
and the nano::vote_code and nano::vote_source enums move from the vote
router's header to nano/secure/vote.hpp. Their helpers and forward
declarations move with them, and confirmation_type and
block_confirmation_info ride along in election_status.hpp.

These are the types election logic is written in. With them in
nano/secure, that logic can live below the node layer too. For their
users only include paths change.

__________

Type: commit

Hash: e0b94a5542ec34d2b3d11ab71b40bb9b3023375d

Created: yesterday

__________

gr0v1ty/nano-node:e0b94a5542ec34d2b3d11ab71b40bb9b3023375d

Test Results

Test Case Status Duration Median Deviation Log Graph
5n4pr_conf_10k_bintree PASS 101 s -82.5 s GitHub job logs Show
5n4pr_conf_10k_change PASS 103 s -148.5 s GitHub job logs Show
5n4pr_conf_change_dependant PASS 96 s -9.0 s GitHub job logs -
5n4pr_conf_change_independant PASS 99 s -8.0 s GitHub job logs -
5n4pr_conf_send_dependant PASS 141 s 35.0 s GitHub job logs -
5n4pr_conf_send_independant PASS 112 s 0.0 s GitHub job logs -
5n4pr_rocks_10k_bintree PASS 85 s -101.5 s GitHub job logs -
5n4pr_rocks_10k_change PASS 115 s -152.5 s GitHub job logs -