validation: check invariants when inserting into m_blocks_unlinked
This commit adds safety checks around a Bitcoin Core internal data structure called m_blocks_unlinked, which tracks blocks whose parent chain is missing. The change prevents two problems: inserting blocks that have no actual stored data, a…
d6359937by stratospher+16−63 files