CCF
CCF copied to clipboard
Add test for historical query given branch ledger
Could be implemented as an end to end test
- Start a three nodes network.
- Isolate the primary.
- Run transactions against both the old primary and the new, enough to produce a chunk on each side.
- Copy the chunk from the old primary to one of the nodes in the partition
- Attempt to run a historical query on that node in the range covered by the chunk, and confirm that it fails
Originally posted by @achamayou in https://github.com/microsoft/CCF/issues/3041#issuecomment-934210296
May also be possible to implement in the unit test, though would require plumbing to set the views for the stub ledger/store.
This seems equivalent to checking that we only serve from committed transactions, and so doesn't warrant a separate test. @eddyashton to confirm.