Skip to content

cardano-testnet: Add tests for lightweight checkpointing configuration #6142

Open
@carbolymer

Description

@carbolymer

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:

  1. A testnet is started.
  2. After few blocks get produced, their hashes are obtained.
  3. A new node configuration is created with with enabled checkpointing and just obtained block hashes.
  4. 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:

  1. Arbitrary block hashes are provided in the configuration.

Expected result

  1. cardano-testnet fails to start due to block hashes checks failure

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue / PR needs to be triaged.type: enhancementAn improvement on the existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions