| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
ASK_FOR (20 s), REFUSED_FOR (60 s), ONE_SHORT_EVERY (300 s) and
REAFFIRM_EVERY (60 s) were fixed: the simulations, on a 250 ms
keepalive, sat them out in real time, and simtest::hyparview's two took
a minute each, most of cargo sim's.
Now Timing has them (ask_for, refused_for, one_short_every,
reaffirm_every): twice the first sync reply timeout, one keepalive
interval, five, and one. At the defaults (1m, 10 s) they are what they
were; with another --keepalive they scale with it, as the keepalives
they answer to do. The two simulations take 3 s.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
libp2p-stream hands each inbound stream to the consumer through a
channel with room for one (Control::accept, mpsc::channel(0), try_send):
one arriving while another waits is dropped, unread, logged at debug
under libp2p's target alone. Messages sent to a node at once were lost
but one, and a proof is two since wire versions side by side (SPEAKS,
then WHO): a joiner's WHO went unanswered until RESOLVE_TIMEOUT, 10 s,
and nodes_over_libp2p failed now and then.
The transport accepts with Control::accept_with_buffer, with room for
as many streams as it reads at once (WAITING, READS + STRANGER_READS):
beyond them, one is dropped still. messages_sent_at_once_all_come_in
sends 30 at once from three peers; without this, 3 to 7 came in.
|
| |
|
|
|
|
|
|
|
|
|
| |
A seed that named no root, joining itself, names it once ready, but only
from this build on: a 0.0.1 seed never shakes hands again, and its joiner
waited for ever. scripts/wire-check hit that, d of this tree joining
through c of 0.0.1, their handshake 6 ms before c was ready.
So the joiner does its half too: where a seed it still waits for named
none, a STATUS saying the seed became ready has it shake hands with the
seed again (seed_ready), which then names its root.
|
| |
|
|
|
|
|
|
| |
They waited for one more request for the inbox than the daemon had had
when they looked, after the transport had started: where its first
request was in by then, they waited for a second, which an idle
transport never makes (its first waits in the daemon), and failed after
2 s. Each test's daemon is new: its first request is the one meant.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
A joiner takes no root before each of its seeds named one, and a seed
names its root only in a handshake. A seed that shook hands while
joining itself named none, and never again: its joiner waited for ever.
scripts/wire-check hit that (b joining a, c through b, d through c):
b's reply to c came 2 ms before b had its document.
Now a node notes the peers its handshakes named no root to, and once
ready, shakes hands with them again, naming it. Older joiners take it
too: it's a handshake as before.
|
| |
|
|
|
|
|
| |
The help gave keep-actor's default as true, but a node that didn't set it
read it as false: an option left unset takes the setting's serde default,
not the help's. So a node kept its writer across a clean stop only where
keep-actor was set, and options_and_settings_agree failed.
|
| |
|
|
|
|
|
| |
docs/development.md, check.js and the browser test name it, but it never
made it into the tree. Node.js, Playwright's library and its Chromium,
all from nixpkgs (playwright-driver and its browsers, of one version),
nothing from npm.
|
| |
|
|
|
|
|
|
| |
Every feature but tokio-console, so that development names one set of
features everywhere: the aliases, checks and single tests, so none
rebuilds what another built. Not cargo's --all-features, which would
take tokio-console too (it needs tokio_unstable), hence not "all". Not
a default.
|
| |
|
|
|
|
|
|
|
|
| |
Two of Mycelium's own daemons, supervised as a node supervises its own,
on loopback, one peering with the other: once routed, each carries a
message to the other after idling, again and again, its send never held
up by its own wait for what comes in. Ignored, as it needs `mycelium` on
the PATH and IPv6, which the daemons listen on for peers:
cargo test --features mycelium -- --ignored two_supervised_daemons
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a sync
A node that stopped cleanly writes on as the writer of before, as
`--keep-actor` had it, now by default: an epoch gathers a writer per node
and per crash, drop or rejoin, not per start. `keep-actor = false`, in a
configuration file, has a node write as a fresh writer each start; a
node without a document file has nothing to keep, which is no longer an
error.
Writing on as the writer of before, a node holds its writes (`mutate_doc`
and the API's through it) until it synced once with a ready neighbour,
level with it, or 10 seconds passed (`AppState::hold_writes`,
`KEPT_WRITER_WAIT`): a neighbour holding later changes of that writer,
which a copy of the node's files made (a backup restored, a disk rolled
back), hands them over first, and the node takes a fresh writer then, as
it did. A node that reaches no neighbour within the wait writes on.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mycelium holds its node's lock for as long as a request for the inbox
waits for a message, and every other request waits for that lock, the
messages we send among them: with two polls of up to five minutes, a
node with nothing coming in sent nothing until a message came in (each
send timing out after ten seconds), so two idle nodes never reached each
other, a node joining a federation whose only node was its founder's
among them.
The inbox is waited for by one request, and only while nothing else is
asked of the daemon: a send, or a seed's lookup, takes a turn (`Turn`),
which drops the waiting request, freeing the daemon's lock as its API
drops a request whose client went away. While turns are under way, the
poller takes what is there without waiting, again as each begins or
ends; then it waits again. It waits peeking, the message left in the
inbox, and pops it after without waiting, so a request dropped while it
waited takes nothing with it. Nothing is asked of the daemon again and
again: an idle node has one request waiting there, for up to five
minutes.
The warnings about the daemon's API name the error's causes, not only
which request failed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A Mycelium daemon's API as it behaves for the transport, served by axum
as Mycelium's is: its node behind one lock, which a request for the
inbox holds for as long as it waits for a message, and which every other
request waits for, as Mycelium 0.7's long poll does. Messages come into
the inbox beside that lock, as from the network.
Against it, the transport as it is: an idle node's sends wait behind its
own polls of the inbox, which wait for five minutes, so
`a_node_with_nothing_coming_in_sends_at_once` and
`messages_coming_while_the_node_sends_all_come_in` fail here (each send
times out); messages are taken as they come, and an idle node asks its
daemon nothing again and again, which the other two tests keep so.
|
| |
|
|
|
|
|
|
|
|
| |
At a revision that gives a name, `found` without `--name` names the
federation at random, 16 hex digits, and says so on standard error: so
every first version it writes at revision 2 or later has a name in its
root, and a rehearsal is another federation even where nobody named it.
`found` then writes another federation each run, and its founders share
the file it wrote, as they do. Without `--name` and `--revision`, the
base revision and no name, as before.
|
| |
|
|
|
|
|
|
|
| |
Without `--name`, `found` writes a first version without a name, at the
base revision or the one `--revision` names, as before names: such a
federation differs from another by its parties, keys, nodes and rules
alone, as two of one name do, and still founds where nodes don't know
revision 2 yet. With it, revision 2 as before. The guide keeps `--name`
in its example and recommends it.
|
| |
|
|
|
|
|
|
|
| |
`found` takes the federation's name (`--name`, required), and founds at
revision 2, the first that gives one, unless `--revision` names a later
one; one naming an earlier is an error. `propose name NAME` (and `fork
name`) names the federation anew, the next version following revision 2
too where the current one doesn't, which the preview says. `status` says
the name its current version gives beside the store's ID.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A version may give its federation a name (`name`, spelled as a party's),
under a revision that has names: `federation-name`, revision 2. The
first version's is in the root, so a rehearsal named otherwise is
another federation, though its parties, keys, nodes and rules are the
same; a later version changes the name as anything else, which changes
what the federation is called, not which it is. A version giving a name
under an earlier revision is none.
What a version does says so, in words: it names the federation, renames
it, or drops its name. Half the generated histories begin at the newest
revision now, their versions naming the federation anew now and then;
those of the revisions before are generated as they were.
|
| |
|
|
|
|
| |
The client reads and writes, as the federation's words have it (a write,
what counts): `get` is `read` now, before any release had it; `write`
stays as 0.0.1 named it.
|
| |
|
|
|
|
|
|
|
| |
A node goes by the name it gave itself (`--alias`), as `names` in
`GET /events/counts` shows it, in what a proposal does (`show`,
`proposals`, `status`, before a vote), among the nodes not known to know
a revision, and at the head of `status`'s section on the node it asks,
which now names that node by its ID too. A node no party lists yet has no
name there: only members' entries reach the node.
|
| |
|
|
|
| |
A value not JSON is taken as a string with -r, as `get -r` prints one;
without it, the error says so.
|
| |
|
|
|
|
|
|
|
|
| |
`status` took a node heard from 0 seconds ago for the node it asked, as
counts give 0 for that one; another node heard from within the second
was called `this node` too.
GET /events says the node's ID now (`node`), and `status` marks the node
of that ID (`here` in --json), and no other, as `this node`; another heard
from within the second is `heard 0 s ago`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`status` becomes the one place to look (party/status.rs): everything
about the federation at the node but the values, which `get` and
`values` read.
* the store: its ID, checkpoint, heads, what it took, its stop;
* the node: its party, whether it votes by itself, the revisions it knows;
* the version: number, hash, federation, revision, how many pass a change;
* every party: the keys its version names and its key set, --key's
marked, and its nodes, each with its name, how long ago the node heard
from it, and what it runs (wire versions, newest revision);
* every proposal on the current version: how it stands, who voted what
and who not yet, who proposed it and what it does (version_lines, as
`show` says it), what moving to its checkpoint refuses, why no client
backs it;
* what the node refused of its own;
* the party the client works as: its --key, its record held against the
node's votes, what `again` signs again;
* the warnings of what may keep votes away (cut_off).
It is built as one JSON object (`model`), which `--json` writes, its
`format` (FORMAT, 1) raised where it changes otherwise than by more
members; what people read is rendered from it (`render`), and may change
from release to release. On a terminal, in colour (Paint): true colour
where COLORTERM says so, 256 where TERM does, else the basic eight; none
with NO_COLOR, TERM=dumb, or off a terminal. What is fine is green, what
needs a look yellow, what is wrong red; headings and the shortest prefix
naming a proposal bold.
|
| |
|
|
|
|
|
|
| |
Now that `status` gives each thing a line of its own, there's no line to
keep short: the store's ID, its checkpoint's and the version's hash are
written whole, as node IDs and proposals' hashes were already; so are the
proposals' hashes in what a vote's guard says. Keys still go by their
fingerprints.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A party votes from one record; a second record voting beside it, or one
begun anew after a loss, can make the party vote twice. The client
votes by its record, never by what a node shows, and still should look.
Before a vote (`consistent`, `unrecorded`), the party's votes on the
current version that the node shows (each proposal's yes and no) are
held against the record's (Record::votes_cast): one the node shows that
the record lacks refuses the vote, naming it and `restore`; one the
record holds that the node doesn't show is said, as on its way or held
back. Where they agree, nothing is said.
What may keep a vote from the node is said too (`cut_off`, from
counts' `heard`): the party's own nodes the node hasn't heard from in
five minutes, through which another vote of it may have gone; and the
parties none of whose nodes it heard from lately, where they are a third
of those with nodes or more: a part of the swarm cut off.
Then it waits (--wait SECONDS, 5 unless given, on vote and propose)
and asks the node again: a vote cast elsewhere just before arrives
first. A version passing meanwhile ends it, as the proposal lapsed.
`restore` takes the party's votes on the current version, as the node
holds them, into its record, or a new one of --party (Record::restore,
checking each vote's signature, its party and version, none twice); a
record begun on the current version casts on it then. Best effort: a
vote on its way from elsewhere isn't among them, and what `again` signs
anew, and the nays that freed an earlier `true`, it doesn't learn.
|
| |
|
|
|
|
|
|
|
| |
Each party in GET /events/counts gives `heard` now: by node ID, how many
seconds ago this node last heard from each node the party lists (its
peer state's last_seen), 0 for itself, left out where it never heard
from it since it started. A party's client reads from it whether nodes
are cut off, where a vote may be held back, and a party's session, which
reads no /peers, has it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
What counts is kept by place, each place's value whole: `values` showed
it so, a place a line, and `--json` as one object keyed by places. An
application holds it as one tree.
`get [PATH]` reads it so (tree, at): each place's value at its path, the
maps on its way made, so that `get home/tv` is one object of everything
under it, and `get home/tv/hosts/laptop/ip6` reaches into a place's
value, a list's items by their index. Where a place lies under another's
value, the deeper place is the later word there (merge). Nothing at a
path is an error. `-r` writes a string as it is, as jq -r does; other
values as JSON. Bash completes it with places and the paths on their
way.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`status` said each party's keys and nodes in one line, separated by
commas, nodes by their IDs alone. Now each goes on a line of its own,
indented beneath its heading (party_lines): the keys the version names,
which sign votes, proposals, the key set and node list; those of the key
set as it counts, which sign writes, or `the same`; `--key`'s marked, and
said where it is none of them; and the nodes, each with the name it gave
itself (`--alias`) where it did, as the dashboard names nodes. The store
and the version are a heading each too, the parties one a line.
The names come from GET /events/counts, which gives each party's
`names` now (by node ID, of the nodes that gave themselves one), so that
a party's session, which reads no /peers, has them. Bash completion
reads the parties from the new layout.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
A record is what votes go by, and what `again` signs anew from; for
logging in as the party, and for `status`, it only named the party. So
someone who only reads needed a record, begun with `init`, which should
never vote beside the party's own.
`--party NAME` (an option as node, key and record are, so party.toml
holds it too) names the party where no record does (working_as): `init`
the one it begins a record of, else the record's, else --party; --party
naming another than these is an error. Commands that sign still take a
record.
|
| |
|
|
|
|
|
|
|
|
| |
Where --node names no user and no --token is given, the client logs in
to the node as its party (Node::log_in): a challenge, signed with --key
(a file's, or through the ssh-agent) for continuum-login, for
POST /auth/login/party, whose token goes with every request then. The
party is the one its record names, or, for `init`, the one it begins a
record of. A party's people need a node's address and a key of their
party's, nothing of its operator's.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A party's people work with the federation by signing as the party, with
a key of its set; what they need of a node is to read and to put events,
which a node's users, its operators, may do with every power besides.
POST /auth/login/party takes a challenge (POST /auth/challenge) signed
with one of the keys that sign for the party (fold::State::signing_keys:
those its current version names, and its key set as it counts), for the
namespace continuum-login, armored or as the federation spells a
signature (keys::signer, keys::verifies_in: the federation's checks, but
for the namespace), and answers a token as the party. Logins by key are
counted per party as per user (challenge::take_with, shared with
logging in by a registry's keys).
The token names the key (Claims::party). Such a session does federation
work alone (api::access::federated): what --store-readers do, and
POST /events; anything else is 403. Every request checks that the key
still signs for the party: once a version or the party's key set drops
it, 401. A build from before reads no token naming a key, as its claims
deny fields they don't know, so never takes a party's session for a
user's; and only the node that issued it takes it, as every token in a
federated swarm.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
On a federated node, every user its htpasswd or proxy lets in may do
everything: put events, have it drop what it took, vote through it with
its party's key, make fork roots, read the document. An application or
someone watching needn't act for the node.
`--store-readers USER,...` names users who read the federation and do
nothing else (`api::access::federated`, before the registry's checks):
GET and HEAD of the events API (/events and below), checking a fork
(POST /events/fork), and keeping a session (whoami, refresh, logout);
anything else is 403, saying so. Its other users are its operators, as
all were: a node setting nothing changes nothing.
|
| |
|
|
|
| |
Spec::first begins every first version with home/{party}/**; the test
gave it again, so the version had four rules, not the three it counted.
|
| |
|
|
|
|
|
|
| |
`keys --add`, `--remove` and `--set` took authorized_keys lines alone,
each one argument, so a .pub file went in as "$(cat phone.pub)". They
take files of such lines too now, as `propose admit` and `propose keys`
do (keys_given, of which key_lines is the one asking for a key at
least), and bash completes files there.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The founders wrote the first version as JSON by hand. `found
PARTY=KEY|FILE...` writes it: each party with its keys, an
authorized_keys line or a file of them, again for more, since 0;
--nodes PARTY=NODE,... their node lists, empty where not given; --rule
PATH=WRITER the rules in order, `nobody` for false, and without any,
each party writing under home/{party}/; --revision FEATURE a later
revision. It is checked as a first version (Version::read,
changes_validly), and goes to standard output, for `root` to make the
root of. The feature lookup is shared with `next` (adding).
|
| |
|
|
|
|
|
|
|
| |
The founders name each node by its ID in the first version, before the
federation starts; getting it meant starting a node once with
--node-key-create and reading its log. `continuum node-id FILE` prints
the node ID of the key FILE holds and exits, `--create` making the key
there first where there is none (saying so on standard error). Logs are
off for it, as for --print-config: the ID goes to standard output alone.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`status` says at a glance where the party and its node stand, from the
node's /events, /events/counts and /events/refused and the party's
record where there is one: the store, its checkpoint and heads; the
current version, its federation, revision and parties, and how many pass
a change; the party's keys (by fingerprint) and nodes as they count, and
whether the version names --key; the node's party, whether it votes by
itself, and its stop; each proposal on the current version as `show`
begins (ballot_line, shared with it); the versions the node refused of
its own; and how many of the party's events a move refused, which
`again` signs again.
`values [PATH]` shows the values that count, all or under a place, each
with who writes there by the current version's rules; --json as one
object, by place.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`fork` took a version written by hand and every head by name. Now:
* fork FILE [HEAD...]: the heads the node shows where none are named;
* fork proposal PROPOSAL: by the version of a proposal on the current
version, as a fork's version is usually one that didn't pass;
* fork admit, remove, give, take, keys, nodes, revision: by the next
version changed as they say, as propose does (not checkpoint: a fork is
at heads of its own);
each subcommand taking --at HEAD... and --founder PARTY=NODE,..., which
names a party's node list anew in the fork's version, so that the nodes
its founders run it on are members there.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
revision
The changes made most no longer go through `next`, jq and a file: each
is a subcommand of `propose`, which writes the next version changed so
(Intent, intended) and proposes it.
* admit PARTY --keys KEY|FILE... [--nodes NODE...]: its keys and node
list named anew since the new number; a party already, or no party's
name, refused.
* remove PARTY: its keys, node list and the rules giving it places go.
* give PATH PARTY|{party}: a rule first; one of that path before goes.
* take PATH: the rule of that path goes, and where another rule may
still give one of its places (overlaps), a rule giving them to nobody
goes first.
* keys PARTY KEY|FILE..., nodes PARTY NODE...: named anew.
* checkpoint: at the heads the node shows.
* revision FEATURE: as `next --revision`.
Keys are authorized_keys lines, or files of them. Every proposal, a
file's too, now says what its version does first (version_lines, shared
with `show`) and asks on a terminal; with --yes the one question covers
the vote, which then says and asks nothing more. A version changing
only its number isn't proposed. --print writes the version instead, to
change by hand and propose as a file.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A build speaks wire versions OLDEST to VERSION and writes each node the
newest both speak (wire::choose), as the node's SPEAKS says; the oldest
until it says. The identity layer keeps that per address (Book::speaks):
a SPEAKS from an address sets it for the address, and for every address
of the node proven there, and a new address of a node takes it over.
Paths encodes each message for an address in its version
(Transport::encode_in; Transport::encode is the newest).
So that two nodes know what the other speaks once they have proven
themselves to each other, before any other message goes between them, a
SPEAKS goes ahead of every WHO and ME, and WHO and ME are read in every
version from 52 on (wire::PROOFS): their tags and layout never change.
Without that, a node whose oldest version is past the other's couldn't
read its proofs, and the two would never get to the handshake that says
what each speaks. A SPEAKS naming no version this build speaks is logged
as a message of another version is, naming the node to upgrade, the
versions as ranges.
A 0.0.1 node takes a SPEAKS from an address not yet proven for any other
message from there: it drops it, and asks WHO.
This build speaks 52 alone, so nothing it sends changes but the SPEAKS
ahead of the proofs. A release adding a version encodes and decodes the
older ones from their own, frozen, types.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A party saw a proposal as its version's JSON changed field by field
(`keys.makefu: - -> {"keys":[…],"since":4}`), and voted with nothing
more before it. `continuum-party show PROPOSAL` now says what a party
votes on, in words (`client::described`):
* whether it passed or is dead, who voted what, and how many more
`true` pass it;
* who proposed it, and the version's number;
* the parties it lets in or takes out, with their keys by fingerprint,
as `ssh-keygen -l` gives them, and their nodes; the keys and node
lists it names anew, with what it adds and drops;
* the rules it adds and drops, each where it is among the rules, a rule
moved being dropped at one place and added at another;
* the checkpoint it moves the store to, and what moving there refuses of
what the node took (`beside`); the revision it moves to, and the nodes
not known to know it;
* the places holding a value whose writer it changes, and why no client
backs it, where none does.
`proposals` says each proposal so. `vote`, through the node too, says
it before anything is cast, then its warnings, and on a terminal asks:
`y` casts, anything else casts nothing. Without a terminal, as in a
script, it asks nothing.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
federation.md, and row 68, said a node shows, for a proposed checkpoint,
what it holds that its heads lack; no node did. `GET /events/counts`
now shows, of each proposal whose version names a checkpoint, the
writes, key sets and node lists the node took that moving there
refuses (`beside`; null for another version): neither among its heads,
in their history, nor above them, as the move has it, which their
parties sign again. Proposals and votes lapse with the move, and merge
events count for nothing: they are left out.
`Store::beside` finds them in one pass, as the move itself does: the
two share `Store::above`, which the move computed inline.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A party named its node, key and record on every command, or a file of
them with --config; one voting in several federations kept files apart
by hand. Without --config, the client now reads a federation's own
directory, `continuum/federations/NAME` in $XDG_CONFIG_HOME or
~/.config: its `party.toml` of the client's options, its record
(`record`) and, where there, its key (`key`); options on the command
line, or `record` and `key` in `party.toml`, win.
`--federation NAME` chooses one; where there is only one, it is used
without being named; where there are several, the client says which
there are and asks for one. `root`, `judge` and `twice`, using no
options, read none. `init --federation NAME` begins a federation's
directory, only its owner reading it, its `party.toml` holding the
options given on the command line with it (`node`, `token`, `key`, the
key's path made absolute; the node's default left out), and the record
in it.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The guides wrote `vote 8d02… yes`, and the client took a whole hash
only. It takes a proposal's hash by a prefix of four digits or more that
no other proposal on the current version starts with (`client::named`),
and says which proposals a prefix names where it names several; a whole
hash is itself, as before. Heads given to `fork` are named so too, among
the heads the node shows. Four digits at least, so that a prefix read a
moment ago doesn't come to name a proposal made since, as one or two
soon would.
Where it shows a proposal's hash (`proposals`, `propose`), the client
marks the shortest prefix that names it, in bold, on a terminal unless
NO_COLOR is set; elsewhere the hash is printed as it was.
|
| |
|
|
|
|
|
|
|
|
|
| |
A node meeting messages of a wire version it doesn't speak logged
`Peer speaks another wire version (another build)`, with the versions
as fields only. It says now, in the message, which build is the newer
and which node to upgrade: this one, where the peer's is newer
(`upgrade this node to talk with it`), else the peer's
(`upgrade that node`), with the peer's version and the ones this build
speaks. Its fields are the peer's version and the oldest and newest this
build speaks.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The federation takes a party's `true` only where, at its history, every
other proposal it backed on that version is dead. A party's client, and
a node voting by itself, built a vote on the events proposing what it
votes on alone. A proposal made while the party's first `true` was
alive, at a history holding it, holds that `true` in its history, and
not the nays that ended the first proposal later: the party's `true` on
it was refused, though its record cast it. The compromise case: five
back X, Y is proposed, X dies, its backers back Y.
A vote now builds on one event proposing what it votes on, and on the
nays that freed its party (`client::building`), so the first proposal is
dead at its history too. One event proposing it is enough, so many
proposing it again don't push a vote past the dependencies an event may
name. A checkpoint's vote builds on its proposal alone: one of those
nays in the history of its heads, named, would put the vote beside them.
A party freed only after the heads were named backs that checkpoint not,
and its client says so before casting; it backs one proposed after.
Row 74 is tested (`federation_attack_74`); federation.md and the guides
say so.
|
| |
|
|
|
|
|
|
| |
The option's help said 1 unless set, but the setting itself stayed
unset, so a node proposed no checkpoint after a version unless told,
and `options_and_settings_agree` failed: `default of
store-propose-versions`, 1 against null. The setting is a count now,
1 unless set, and 0 has the node propose none after versions.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rules go by first match, and `{party}` matches only the names of the
version's parties: admitting a party named as a segment of a place, or
changing the rules or their order, moves who writes the places below
it, and what their writer wrote there counts no more once the version
passes. Nothing said so: a proposal showed only its fields' changes.
`client::writers` names, of the places holding a value, those whose
writer a version changes, as `place: before -> after` (`nobody` where no
rule gives it one). `continuum-party proposals` prints them under each
proposal's changes (`who writes …`), and a fork's check does for the
fork's version (`writers` in POST /events/fork). The guides and
federation.md say so; row 72 is tested (`federation_attack_72`).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A node holding the history up to a fork's heads said whether it builds
the root, what it holds that those heads lack, and which parties' keys
the fork's version gives otherwise. A founder could change the rules, or
only their order, which says who writes where, and nobody joining was
shown it.
The check now says what the fork's version changes of the version
current at those heads, a line each as a proposal's are shown
(`client::changes`): `changes` in POST /events/fork, and
`continuum-party check` prints them. federation.md and the forking
guide say so, and that a fork's ID is compared whole: a founder trying
versions can steer its first few digits.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After a close vote, one key voting twice passes a rival version at a
history from before the version that followed, the votes cast before
counting with its own, any time until a checkpoint above that version:
nodes that took the version refuse it, but one lagging behind, or
joining from the root, may take it. A node voting by itself proposed a
checkpoint after a version only where its operator set
`--store-propose-versions`; now it does unless told otherwise (1 unless
set; 0 never so). Versions that change more than moving to a checkpoint
are rare, so the cost is a checkpoint each.
A default set, store-propose-versions no longer asks for store-vote-key,
as store-held-for and store-back-after don't.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
`--store-propose-versions` counted the versions since the checkpoint's
version, the one current at its heads. The version that moved the store
there is written after its heads, so it counted: with 1, a node proposed
a checkpoint again as soon as it backed one (`--store-back-after` after
the move), and the next one, and so on, every ten minutes for good.
It counts the versions written since that change more than moving to a
checkpoint now (`State::changed_since_checkpoint`): with 1, one
checkpoint after every other version, and none after a checkpoint. The
test goes on past the move.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GET /peers shows, of each peer, what it said with its handshakes
(SPEAKS): its `knows`, the wire versions it speaks, the oldest and the
newest, and the newest revision of the federation it knows; null where
it said nothing, a build from before SPEAKS or no handshake from it
since the node started. `localKnows` is the node's own. So every swarm,
federated or not, shows which builds its nodes run, as far as each
heard.
`swarm::speaking::shown` shapes it, for GET /events/counts too, whose
`knows` is the same; docs/openapi.yaml has it once, as `Knows`. Without
the federation feature, a revision reads as one this continuum doesn't
know. `Speaking::of` is now used in every build, not only federated
ones, which warned of it as dead code.
|