Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

cardano-testnet: Add tests for lightweight checkpointing configuration

Đang mở
#6,142 11 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
haskell
Lĩnh vực
blockchain, testing-qa

Hướng nghiên cứu

Bắt đầu với các test của cardano-testnet, đặc biệt là test Cardano/Testnet/Test/Cli/KesPeriodInfo.hs được tham chiếu. Chạy thiết lập test hiện có và theo dõi cách nó khởi động một testnet, lấy các block hash và tạo cấu hình node. Được xem là hoàn thành khi bao quát cả việc khởi động thành công với các hash thực lẫn lỗi khi các hash tùy ý được cấu hình.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs triage type: enhancement

Lightweight checkpointing is introduced in: https://github.com/IntersectMBO/cardano-node/pull/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
Ngôn ngữ chính
Haskell
Star
3.2k
Fork
760
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IntersectMBO/cardano-node

Tất cả issue của IntersectMBO/cardano-node

Issue tương tự

Thêm issue về Haskell

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.