Page MenuHomePhabricator

[net processing] Add IsBlockRequested() function
ClosedPublic

Authored by PiRK on Nov 30 2022, 16:39.

Details

Reviewers
sdulfari
Group Reviewers
Restricted Project
Commits
rABC3b44c0d0a4b8: [net processing] Add IsBlockRequested() function
Summary

MarkBlockAsReceived() should not be used for both removing the block
from mapBlocksInFlight and checking whether it was in the map.

This is a partial backport of core#22141
https://github.com/bitcoin/bitcoin/pull/22141/commits/62993507336be06490b202b3955d4830a99e9e34

Depends on D12707

Test Plan

ninja all check-all