| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
seconds
Every five seconds it looked at the changes screening refused, wrote its
set of events to its file, and read its store anew. It now looks where
screening refuses a change, writes the set five seconds after it
changed, and wakes for what the set is to let go of. A node voting by
itself still looks every five seconds: its rules count time.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
pins
A pin counted only while the node had no file of its set, so a node
behind for longer than the others keep what a checkpoint forgot, or one
undoing a move, had to start without its file, and lost what it refused
of its own and what its operator had it drop. The file now says which
checkpoint was pinned when the set began: with another pinned, and not
the one the store is at, the node gathers its set anew from that one,
its store refusing what the one in the file refused. A node of both
kinds makes its set of its document then, where it finds the pin.
|
| |
|
|
|
|
|
|
|
| |
A store that stopped at an event it can't judge holds back what comes
after, and its set gave none of it to others: what was put through such
a node reached nobody, and a restart lost it. The set now names what its
store holds back among what it gives, passes it on at once as it does
what it took, and keeps it in its file; once the store takes again, it
gives of it what the store took, or refused of its own.
|
| |
|
|
|
|
|
|
| |
Saying where a set stands read the store's heads anew, which costs its
events, and finding an entry by its name hashed every entry: both for
every message. A set now keeps the one, read anew where its store
changed, and the other as entries come and go; in tests both are
compared with what is read anew.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A set built the names it gives to others anew for every message, and a
range's fingerprint cost its names. Now ranges::Names holds names in
order in runs of up to 512, each with what it adds up to, so a range's
fingerprint costs its ends and a sum per run between; and a set keeps
one, adding and taking out as its store takes and lets go, entries
come and go, and what it holds beside goes. In tests the names kept
are compared with those read anew.
A node splits a range where a number of its own says (ranges::answer's
salt, from the system's randomness in store::passing), so that nobody
knows beforehand which ranges it compares.
Who is a member, which is the fold's to say of the store's state, a
set asks only where its store changed, and once for the events of one
message (Set::offer_all): asked for every event offered, it was what
made catching up slow.
A set's store has no more than 1024 events wait.
|
| |
|
|
|
|
|
|
|
|
| |
Set::save and load (continuum-events/1, then MessagePack): the store's
checkpoint and what it keeps, what it took in the order taken, what its
node refuses of its own and its operator dropped, what the document
holds beside the store, of what a checkpoint forgot how long ago, and
the members' entries. Read back, every event is offered to a store
anew and every entry checked. What waits for what it builds on isn't
saved: it comes again.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
What a node says of itself (store::entry::Entry): a JSON map of no more
than 16 KiB, with its count, signed with its node key for its store. A
set holds each member's newest (Set::put_entry): the highest count, of
two of one count the lower name; none of a node the store doesn't name
a member as it reads now, and those it held go with their node. Their
names are among the set's, to catch up by; and a set says what of a
peer's names it would have (Set::wants, Store::knows), which leaves out
what its store refused, waits for or forgot, and a stranger's entry
until who is a member changes.
The store's test fold names members, by what counts at node:<node ID>.
|
|
|
The kind events (docs/document.md, A set of events), as far as holding
goes (store::set::Set): a store, and beside it what the store lets go
of and its node still gives to others: what its history takes and the
node doesn't; what builds on that, unjudged, no more than 1024 events
or 16 MiB, the oldest first to go; what a checkpoint forgot, for a time
its operator sets. What the fold refuses is held by nobody. Its names,
to catch up by (document::ranges).
Used by nothing yet: no member's entry, no file, no passing on.
|