Skip to content

Fix mainnet indexing failure with multiple block files#46

Closed
0xZaddyy wants to merge 5 commits intopayjoin:masterfrom
0xZaddyy:multi-block
Closed

Fix mainnet indexing failure with multiple block files#46
0xZaddyy wants to merge 5 commits intopayjoin:masterfrom
0xZaddyy:multi-block

Conversation

@0xZaddyy
Copy link
Copy Markdown
Contributor

@0xZaddyy 0xZaddyy commented Apr 4, 2026

This occurred because the parser was hardcoded to only read from blk00000.dat, but Bitcoin Core distributes blocks across multiple files (~128MB each). When trying to index blocks that exist in later files (e.g., blk00001.dat, blk00002.dat), the parser would attempt to read beyond the first file's boundaries, causing an EOF error.

closes #44

0xZaddyy added 2 commits April 4, 2026 17:54
The parser was previously hardcoded to only read from blk00000.dat, causing an EOF error when blocks spanned multiple files on mainnet
Replace all `if let ... && ...` patterns with nested if statements to maintain compatibility with stable Rust. This fixes compilation errors related to unstable let-chain expressions (E0658).
@0xZaddyy
Copy link
Copy Markdown
Contributor Author

0xZaddyy commented Apr 5, 2026

Removing all related clippy warning fixes here, as they are all addressed in #47

@arminsabouri
Copy link
Copy Markdown
Collaborator

This may be a dup of #39

@0xZaddyy
Copy link
Copy Markdown
Contributor Author

0xZaddyy commented Apr 7, 2026

@arminsabouri do you suggest i close this?

@arminsabouri
Copy link
Copy Markdown
Collaborator

@arminsabouri do you suggest i close this?

yes

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.

Mainnet indexing fails

2 participants