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

Add history_blocks to manifest #5032

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Add history_blocks to manifest #5032

merged 3 commits into from
Dec 8, 2023

Conversation

incrypto32
Copy link
Member

@incrypto32 incrypto32 commented Nov 30, 2023

Closes #3667

#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct IndexerHints {
pub history_blocks: Option<BlockNumber>,
Copy link
Member Author

Choose a reason for hiding this comment

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

@leoyvens how does this look? If we have ongoing pruning do we need to the prune hint to do the manual pruning?

indexingHints:
   prune:
    historyBlocks: 100

Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

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

LGTM.

let manifest = resolve_manifest(YAML, SPEC_VERSION_0_0_4).await;

assert_eq!("Qmmanifest", manifest.id.as_str());
assert!(manifest.indexer_hints.unwrap().prune.is_some());
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand this test - what is this trying to ensure?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh i used that test to test out the indexer_hints parsing is working properly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

its was removed already. merging

Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a comment what the intent of the test was would have been fine, too - it was just a bit confusing.

@incrypto32 incrypto32 merged commit 5c97594 into master Dec 8, 2023
7 checks passed
@incrypto32 incrypto32 deleted the krishna/indexer-hints branch December 8, 2023 12:47
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.

Provide a control for subgraph pruning in the subgraph manifest
2 participants