Skip to content

Comments

Chain index integration#650

Merged
AloeareV merged 142 commits intodevfrom
chain_index_integration
Feb 13, 2026
Merged

Chain index integration#650
AloeareV merged 142 commits intodevfrom
chain_index_integration

Conversation

@Oscar-Pepper
Copy link
Contributor

@Oscar-Pepper Oscar-Pepper commented Nov 6, 2025

Builds on top of #638

Motivation

Integration of ChainIndex:

Fetch and State services ought to be switched to rely on chain_index instead of the deprecated local_cache

@Oscar-Pepper Oscar-Pepper mentioned this pull request Nov 6, 2025
3 tasks
@nachog00 nachog00 mentioned this pull request Nov 6, 2025
nachog00 and others added 16 commits November 6, 2025 22:20
- Changed `#[tokio::test]` to `#[tokio::test(flavor = "multi_thread")]` in two test functions
- Files impacted: `integration-tests/tests/fetch_service.rs`

fix #656
- Updated `#[tokio::test]` attribute to `#[tokio::test(flavor = "multi_thread")]` for multi-threaded test execution
- Applies to functions: `process_100_blocks` and `process_200_blocks` in both `zcashd` and `zebrad` modules
- Changed `#[tokio::test]` to `#[tokio::test(flavor = "multi_thread")]` in `zebra::get::address_deltas` test.
- Changed #[tokio::test] to #[tokio::test(flavor = "multi_thread")]
- Remove incorrect reversal of transaction IDs from quick_send
- Transaction IDs are already in internal byte order, matching mempool format
- Add reversal for exclude list, which requires RPC format
- Add assertion to verify exactly 2 transactions in mempool
- Fixes test failure where hashes appeared reversed

fix #659
Fix incorrect mapping in get_raw_mempool
Update tokio test flavor to multi_thread in get_network_sol_ps tests
Fix transaction hash byte order in get_mempool_tx test
- Moved `NodeBackedChainIndex`, `NodeBackedChainIndexSubscriber`, and `State` import to maintain alphabetical order
- Updated deprecation messages to be more informative regarding the new indexer's role and related issue #677
- Added more fields to the deprecation, as I believe they are part of what chain_index replaces, so we better get it out from the get go.
- Reordered fields in `StateService` and `StateServiceSubscriber` structs in `zaino-state/src/backends/state.rs`
- Reordering aligns with ongoing transition to new indexer field as part of #677 completion
@nachog00 nachog00 linked an issue Nov 28, 2025 that may be closed by this pull request
@idky137
Copy link
Contributor

idky137 commented Feb 3, 2026

#815 should now be ready. This PR pulls dev, fixes conflicts and updates compact block serving for the lightclient protocol 0.4.0 update.

idky137 and others added 3 commits February 3, 2026 15:37
update Chain index integration: Feature/lightclient protocol v0.4.0
idky137 and others added 19 commits February 3, 2026 17:46
…_integration

Update state service chain index integration: Feature/lightclient protocol v0.4.0
…ange

Update state service get block range
get_block method migrated to use chain_index
get_block_range(_nullfiers) migrated to use chain_index
moved the compact methods over to proto utils since local_cache is being removed.
maybe it belongs somewhere else on zaino-state instead... @pacu #idky137 ?
Remove deprecated local_cache module
…gration

state service chain index integration
@nachog00 nachog00 marked this pull request as ready for review February 13, 2026 20:21
Copy link
Contributor

@AloeareV AloeareV left a comment

Choose a reason for hiding this comment

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

All code reviewed as PRs into this branch

@AloeareV AloeareV merged commit aa4bedf into dev Feb 13, 2026
10 of 13 checks passed
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.

ChainIndex integration

6 participants