1 suggestion
Optional improvements
[suggestion] · Lookup test does not check NodeContext isolation
The current lookup is correctly context-local, but the replacement test never checks that another NodeContext cannot see m_node's index.
Location: src/test/blockfilter_index_tests.cpp:231 (head).
Details and suggested fix
While m_node owns its BASIC index, create an empty node::NodeContext other and assert node::GetBlockFilterIndex(other, BlockFilterType::BASIC) == nullptr. All existing lookups use m_node, so a shared lookup bound to that context could satisfy the entire absent/present/absent sequence. The extra assertion directly tests context isolation without another initialized node, since the helper only reads block_filter_indexes.