diff options
| author | tv <tv@krebsco.de> | 2026-11-16 16:19:03 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 18:01:29 +0100 |
| commit | ceddd407c434edde2a1490b912854444dcda97fe (patch) | |
| tree | 7133190c796549d7d178b6cedfce375b15d9c852 /src/simtest/deltas.rs | |
| parent | 7bb467a013a9146620b633e3c3cdd21e3a48f80f (diff) | |
store: a store held in memory, and a fold for its tests
A store starts from its root, with the events the root keeps, and holds the events
taken after it. An event offered is taken once the store holds its dependencies, where
it is above the store's heads (built on an event after them, or on all of them) and the
fold takes it at its history: the state its history reads as, folded from the
checkpoint. An event waits for what it builds on, and is taken when that comes; one
built on a refused event, or whose bytes are none of the fold's, is refused, with what
waits for it.
The fold made for the tests judges by history (a put refused where its key is locked),
reads by what counts (a key's latest put, then the lowest ID), refuses by what a node
took before (two eras of one number), and moves to checkpoints (cuts), as the
federation does, so that the later stages' tests have something to exercise.
Diffstat (limited to 'src/simtest/deltas.rs')
0 files changed, 0 insertions, 0 deletions
