Open
Description
Lightweight checkpointing is introduced in: #6048
Tests for this feature should be added to cardano-testnet
.
Positive scenario
A positive scenario can be tested in the following way:
- A testnet is started.
- After few blocks get produced, their hashes are obtained.
- A new node configuration is created with with enabled checkpointing and just obtained block hashes.
- The new node is started and joins the newtork.
Note
This can be done similarly to how it's implemented in in KesPeriodInfo
test.
Expected result
Block hashes are correctly checked and the node starts successfully.
Negative scenario
However it's possible to implement a negative scenario:
- Arbitrary block hashes are provided in the configuration.
Expected result
cardano-testnet
fails to start due to block hashes checks failure