1 suggestion
Optional improvements
[suggestion] · blockfilter_index_lookup leaves cross-context isolation untested
The current lookup is correct, but blockfilter_index_lookup exercises only m_node, leaving the per-context isolation introduced by this PR without regression coverage.
Location: src/test/blockfilter_index_tests.cpp:232 (head).
Details and suggested fix
The absent, present and cleared assertions would also pass if GetBlockFilterIndex incorrectly consulted the first context's vector for every call. Add a second lightweight NodeContext and construct an in-memory BASIC index in each context through MakeIndex and MakeChain, without calling Init or starting synchronization. Assert that each lookup returns its context's exact index pointer, then clear one context's block_filter_indexes and verify that the other still returns its original instance. This distinguishes node-local ownership from shared lookup state without initializing a second chainstate: construction uses separate in-memory database environments, and destruction tolerates null validation_signals and an unstarted sync thread.