Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tree): remove BlockAttachment usage #10453

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Aug 22, 2024

This introduces two new types, BlockStatusTwo and InsertPayloadOkTwo, which removes the BlockAttachment from BlockStatusTwo::Valid. This is now not necessary due to the new engine design.

@Rjected Rjected added C-enhancement New feature or request A-consensus Related to the consensus engine A-blockchain-tree Related to sidechains, reorgs and pending blocks labels Aug 22, 2024
/// If we don't know the block's parent, we return `Disconnected`, as we can't claim that the block
/// is valid or not.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum BlockStatusTwo {
Copy link
Member

Choose a reason for hiding this comment

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

smol nit: can we make this a number so that we are consistent w/ BlockchainProvider2 and it's clear that it should be renamed in the fut

@Rjected Rjected added this pull request to the merge queue Aug 22, 2024
Merged via the queue into main with commit 70a1015 Aug 22, 2024
34 checks passed
@Rjected Rjected deleted the dan/revise-attachment branch August 22, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-blockchain-tree Related to sidechains, reorgs and pending blocks A-consensus Related to the consensus engine C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants