You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: