Skip to content

Conversation

@someone235
Copy link
Contributor

No description provided.

for chain_block in self.services.reachability_service.default_backward_chain_iterator(ghostdag_data.selected_parent) {
let gd = self.get_ghostdag_data(chain_block).unwrap();
for red in &gd.mergeset_reds {
let red_header = self.headers_store.get_header(*red).unwrap();
Copy link
Collaborator

@IzioDev IzioDev Aug 9, 2025

Choose a reason for hiding this comment

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

Is it safe to assume the header will be in the store for the whole rpc thread execution?

Is there a lock on the store?

edit: should be reasonable to assume the iterator won't go up until pruning point since the window is meant to be reasonable

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.

2 participants