feat(examples): Implement BlockAssembler and BlockExecutor for custom blocks in custom_node example (#16435)

This commit is contained in:
Roman Hodulák
2025-05-23 15:43:00 +02:00
committed by GitHub
parent 4e6cba3324
commit badbe3d81d
6 changed files with 165 additions and 55 deletions

View File

@@ -36,7 +36,11 @@ pub struct CustomHeader {
pub extension: u64,
}
impl CustomHeader {}
impl From<Header> for CustomHeader {
fn from(value: Header) -> Self {
CustomHeader { inner: value, extension: 0 }
}
}
impl AsRef<Self> for CustomHeader {
fn as_ref(&self) -> &Self {