Skip to content

feat(tree-engine): invalid ancestor handling#8795

Merged
rkrasiuk merged 1 commit intomatt/engine2from
rkrasiuk/invalid-ancestor-handling
Jun 13, 2024
Merged

feat(tree-engine): invalid ancestor handling#8795
rkrasiuk merged 1 commit intomatt/engine2from
rkrasiuk/invalid-ancestor-handling

Conversation

@rkrasiuk
Copy link
Member

Description

Invalid ancestor handling.

@rkrasiuk rkrasiuk added the A-consensus Related to the consensus engine label Jun 13, 2024
Comment on lines +28 to +29
block: Arc<SealedBlock>,
senders: Arc<Vec<Address>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need them separate?

let tree_state = self.state.tree_state.read();
block = tree_state
.block_by_hash(hash)
// TODO: clone for compatibility. should we return an Arc here?
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we do,
the caller can then still decide

@rkrasiuk rkrasiuk merged commit 4047f5f into matt/engine2 Jun 13, 2024
@rkrasiuk rkrasiuk deleted the rkrasiuk/invalid-ancestor-handling branch June 13, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-consensus Related to the consensus engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments