2 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Optional improvements
[suggestion] · Registry tests do not distinguish different NodeContexts
The migrated init/destroy test uses only m_node, so it would still pass if the helpers ignored their context argument and shared a registry.
Location: src/test/blockfilter_index_tests.cpp:238 (head).
Details and suggested fix
Add a second bare NodeContext to blockfilter_index_init_destroy and keep memory-backed, unstarted BASIC indexes alive in both. Check that creating an index in one context leaves the other empty, creating both returns distinct pointers, and destroying either context's index leaves the other's lookup and ForEachBlockFilterIndex count unchanged. These assertions distinguish context-local ownership from the former global registry.
This needs no second chainstate: MakeChain only stores the context reference, memory-only databases receive separate environments, and BaseIndex::Stop() tolerates absent validation_signals. Do not call the indexes' Init() or Sync(). Both constructors still use the gArgs directory, so this tests registry isolation, not storage isolation.
[suggestion] · Block filter initialization accepts independent owner and chain contexts
All current callers use the owning NodeContext for the chain, so the separate factory repeats that relationship and unnecessarily permits a mismatched owner/chain pair.
Location: src/node/indexes.cpp:41 (head).
Details and suggested fix
Drop the make_chain parameter and call interfaces::MakeChain(node) inside InitBlockFilterIndex, after the existing duplicate guard. This makes the index's chain context follow its owner and removes the repeated factory lambdas while preserving lazy construction, duplicate rejection and the f_memory/f_wipe behavior. Both implementations belong to bitcoin_node, so this adds no dependency to index/. Tests needing a custom chain can still construct BlockFilterIndex directly.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Test filter-index isolation across node contexts