No digest item for a custom consensus engine
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- blockchain
Hướng nghiên cứu
Bắt đầu trong core/src/common/empty_block/inherents/providers.rs, đặc biệt là SmartInherentProvider và phần xây dựng digest quanh các dòng 129-140. Xem xét cách BABE và AURA được xử lý cũng như đường dẫn xác thực được tham chiếu; công việc được xem là hoàn tất khi đã thiết lập và kiểm thử một cách được hỗ trợ để các ID engine đồng thuận tùy chỉnh như SPIN cung cấp mục digest mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello! I work on a Substrate-based chain with a custom consensus engine and as suggested in https://github.com/paritytech/try-runtime-cli/blob/b45be7dfce89fd881be27171d3ea114ef19d832c/core/src/common/empty_block/inherents/providers.rs#L96-L98 reporting a case when SmartInherentProvider doesn't work for me.
Currently, providers.rs only accounts for BABE and AURA when constructing the digest for the empty block. In my case for QF Network's blockchain node QuantumFusion-network/qf-solochain we are developing a custom consensus engine called SPIN with its own engine ID SPIN_ENGINE_ID. Because of this there is no slot with the expected engine ID in the empty block and the slot number validation fails during try-runtime usage.
It is easy to add custom engine ID in a fork project like:
// core/src/common/empty_block/inherents/providers.rs#L128
let digest = vec![
DigestItem::PreRuntime(
BABE_ENGINE_ID,
PreDigest::SecondaryPlain(SecondaryPlainPreDigest {
slot,
authority_index: 0,
})
.encode(),
),
DigestItem::PreRuntime(AURA_ENGINE_ID, slot.encode()),
DigestItem::PreRuntime(*b"spin", slot.encode()),
];
But perhaps there are some recommendations on how to properly support custom engine IDs in the digest? Thank you.
- Ngôn ngữ chính
- Rust
- Star
- 25
- Fork
- 29
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của paritytech/try-runtime-cli
-
try-runtime-cli Crashes Due to OOM (Out-of-Memory) & Long Execution Time – Resolved with 32GB RAM Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
paritytech/try-runtime-cli#119 ·
-
Error with latest `polkadot-sdk/master` (two incompatible versions of `rocksdb` are pulled in) Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
paritytech/try-runtime-cli#118 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
paritytech/try-runtime-cli#111 · 1 bình luận · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
paritytech/try-runtime-cli#110 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
paritytech/try-runtime-cli#109 · 2 bình luận · 1 reaction ·
Tất cả issue của paritytech/try-runtime-cli
Issue tương tự
-
risk:low runtime status:in-progress type:test
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
EricSpencer00/Resilient#4835 · 1 bình luận ·
-
agent:ready documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
cesarferreira/stax#890 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100