Skip to content

Conversation

@xDimon
Copy link
Member

@xDimon xDimon commented Dec 26, 2025

Take to use block tree and block storage.
Extract block+state collection into block tree/storage
Implement storing of block states.
Fix logging system tuning over cli.
Some minor fixes and improvements.

remaining:
to fix fork-choice test
to refactor outcome handling (avoid exception at getting outcome-value without checks) and other ways to have exceptions.

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
@xDimon xDimon requested review from kamilsa and turuslan December 26, 2025 09:29
return {slot, hash()};
}

BlockIndex index() const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please choose one slotHash() or index()

BlockHash hash;
auto operator<=>(const BlockIndex &other) const = default;

explicit operator Checkpoint() const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May remove explicit or use Checkpoint::from().

May add comment that the only difference between Checkpoint and BlockIndex is order (BlockIndex is sorted by slot first), or add separate wrapper for comparison (struct CheckpointOrderBySlot { Checkpoint inner; })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants