diff options
| author | tv <tv@krebsco.de> | 2026-11-16 16:51:43 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 18:01:56 +0100 |
| commit | 62037cc131ab52c926debeacbef86d7728ecda2e (patch) | |
| tree | 69515916a8912ac61e11c1722f7219f9ff999d27 /src/access/bans.rs | |
| parent | 4d13b874821220a65b8f74f6d0dd48028ec4c0f8 (diff) | |
store: properties over generated histories
Two to four writers, each knowing what it wrote and what was written when it last caught
up with the others, write the test fold's events on one or two events they know. Eras
and cuts are numbered by their history, each number written once, or, for some
properties, as often as it comes. A store offered them is checked against the whole
history, read from the root with nothing forgotten:
* it holds the same whatever order the events come in: every order putting each after
what it builds on, for up to six events; some shuffled beyond; and backwards, where
every event waits until the first comes;
* it judges every event as the whole history does, the store's own refusals aside;
* what builds on a refused event is refused;
* what it took is above its checkpoint's heads, the cut naming the checkpoint among it,
and it reads as its checkpoint and what it took, and as its whole history;
* a node starting from its checkpoint holds what it holds.
A failing history is cut down, events taken out with what builds on them for as long as
it still fails, and printed.
Diffstat (limited to 'src/access/bans.rs')
0 files changed, 0 insertions, 0 deletions
