diff options
| author | tv <tv@krebsco.de> | 2026-11-12 01:13:54 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-12 02:47:08 +0100 |
| commit | 81dc0ca6012372ff293e19549053fda84bca1eb0 (patch) | |
| tree | 883f867ee70072d38e26b907ce4734cad40f0ba8 /src/swarm/bootstrap.rs | |
| parent | 5b13f5e9d83a11b8a60f2d4711065360ba20f70c (diff) | |
screen: refuse a change at a seq this node made under its own actor
A node receiving a change of the actor it writes as, one it doesn't
hold, writes on as a fresh actor (another node writes as it, from a copy
of its files). Where the other node made it at a seq this node made a
change at too, the change was taken to Automerge, which refuses the
whole batch (duplicate seq): the message failed, and with it everything
else it carried. Signatures::forks found it forged only where a
signature verified a change of the actor at that seq, and this node
signs its own latest change only as it sends it.
forks now also finds a change forged where its actor is the one the
document writes as and the document's latest change of it
(get_last_local_change) is at its seq or later. apply_bytes switches to
the fresh actor after judging the batch, not before, so the check still
sees the actor; also where judging fails.
Diffstat (limited to 'src/swarm/bootstrap.rs')
0 files changed, 0 insertions, 0 deletions
