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

ERRO Block start / end block spec invalid #307

Closed
phill-beyond opened this issue Jun 1, 2024 · 3 comments
Closed

ERRO Block start / end block spec invalid #307

phill-beyond opened this issue Jun 1, 2024 · 3 comments
Assignees

Comments

@phill-beyond
Copy link

After setting up testnet environment and freshly start db sync, got an block spec invalid error which looks like a bug.

ordhook db sync --config-path=./Ordhook.toml
Jun 01 01:45:19.298 INFO Indexing inscriptions from block #767430 to block #2819136
Jun 01 01:45:19.299 ERRO Block start / end block spec invalid

@phill-beyond
Copy link
Author

I think the issue is: chainhook-sdk/src/utils/mod.rs
pub const MAX_BLOCK_HEIGHTS_ENTRIES: u64 = 1_000_000;
impl BlockHeights {
pub fn get_sorted_entries(&self) -> Result<VecDeque, BlockHeightsError> {
let mut entries = VecDeque::new();
match &self {
BlockHeights::BlockRange(start, end) => {
if start > end {
return Err(BlockHeightsError::StartLargerThanEnd);
}
if (end - start) > MAX_BLOCK_HEIGHTS_ENTRIES {
return Err(BlockHeightsError::ExceedsMaxEntries(
MAX_BLOCK_HEIGHTS_ENTRIES,
end - start,
));
}
There is a MAX_BLOCK_HEIGHTS_ENTRIES, but my progress need to sync db from #767430 to block #2819136 which is more than 1M.

@phill-beyond
Copy link
Author

So the question comes to: How can I index on the testnet? Since no prebuilt db download available? Thanks!

@lgalabru
Copy link
Contributor

Hi @phill-beyond, thanks for your feedback. I'll close this issue, as we're already tracking the lack of Testnet support here: #292

@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Ordinals Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants