Commit graph CultLib/tests/GameCult.Networking.Tests/CultNetReplicaCommitTests.cs
Author SHA1 Message Date
Libby
2a23efebee CultNet tests: a snapshot that swaps unique-index values against the replica is applied
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 02:05:51 +00:00
Libby
3a5df75a07 CultNet: a replica applies the changes of one server commit as one cache commit; a refused commit faults the client
The database publishes commits (WatchCommits); the subscription server and the database server tag the changes a subscription receives from one commit with commitId and commitCount (optional wire fields older peers ignore). The C# subscription client buffers a tagged commit and applies it through one CultCache.Commit, judged on its result, so a swap of [CultIndex] values replicates. A refusal sets Fault, raises Faulted, and stops further applying. Snapshots apply as one commit too.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 01:57:47 +00:00