Class BlockStreamCheckpoint
A persisted point of verified block stream progress: a block number and the merkle root hash this client computed for it.
Implements
Inherited Members
Namespace: Hiero.BlockNode
Assembly: Hiero.dll
Syntax
[Experimental("HIERO001", UrlFormat = "https://github.com/bugbytesinc/Hiero/blob/main/docs/blocknode-client-plan.md")]
public sealed record BlockStreamCheckpoint : IEquatable<BlockStreamCheckpoint>
Remarks
Consumers persist the pair after processing each verified block (from Number and VerifiedRootHash) and pass it back via ResumeFromCheckpoint after a restart: the resumed stream's first block must chain from this hash, making continuity cryptographic rather than merely numeric.
Constructors
| Edit this page View SourceBlockStreamCheckpoint(ulong, ReadOnlyMemory<byte>)
A persisted point of verified block stream progress: a block number and the merkle root hash this client computed for it.
Declaration
public BlockStreamCheckpoint(ulong BlockNumber, ReadOnlyMemory<byte> RootHash)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | BlockNumber | The verified block's number. |
| ReadOnlyMemory<byte> | RootHash | The merkle root hash computed for that block. |
Remarks
Consumers persist the pair after processing each verified block (from Number and VerifiedRootHash) and pass it back via ResumeFromCheckpoint after a restart: the resumed stream's first block must chain from this hash, making continuity cryptographic rather than merely numeric.
Properties
| Edit this page View SourceBlockNumber
The verified block's number.
Declaration
public ulong BlockNumber { get; init; }
Property Value
| Type | Description |
|---|---|
| ulong |
RootHash
The merkle root hash computed for that block.
Declaration
public ReadOnlyMemory<byte> RootHash { get; init; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |