This removes the remaining process-global index ownership and stores node-owned indexes in NodeContext instead.
Indexes moved:
g_txindexg_txospenderindexg_coin_stats_indexg_filter_indexes
NodeContext now owns these index instances, while node.indexes remains a non-owning list used for common index startup, shutdown, and getindexinfo handling.
Behavior should be unchanged. Indexes are still created from the same startup options, started in the same init step, stopped before destruction, and destroyed while validation_signals is still alive so they can unregister safely.
The block filter index registry is moved to node/indexes.{h,cpp} so index/ code does not depend on NodeContext. PeerManager receives a small lookup callback instead of reaching into global state.
Review notes:
- The first four commits are small and mostly mechanical: move
txindex,txospenderindex, andcoinstatsindexownership toNodeContext, then makegetindexinfousenode.indexes. - The last commit is the main one to review carefully. It moves block filter index ownership to
NodeContext, addsnode/indexes.{h,cpp}, and wires lookup throughPeerManager::Optionsinstead of global state.