Review report

core: PR #36369

Design and approach

Measure the cost of exhaustive missing-input lookups (src/validation.cpp:856, head)

After the first missing outpoint, this loop checks every remaining input to identify all missing parents. Each additional m_view.HaveCoin may access the coins-view backend on a cache miss, whereas the previous behavior returned at the first miss. Since peer-supplied standard transactions can have many inputs, this increases work under validation locks. Please establish whether the cold-cache cost for a maximum-size transaction with missing inputs is acceptable. If complete parent metadata is only needed when storing a P2P orphan, collecting it only for that path could preserve the distinction between present and missing inputs without imposing exhaustive lookups on other callers. The recommendation depends on measured cost.