Page MenuHomePhabricator

[net] Add RunInactivityChecks()
ClosedPublic

Authored by Fabien on Jan 24 2022, 20:57.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABCe5046830a7fe: [net] Add RunInactivityChecks()
Summary
Moves the logic to prevent running inactivity checks until the peer has been connected for -peertimeout time into its own function. This will be reused by net_processing later.

Partial backport of core#20721:
https://github.com/bitcoin/bitcoin/pull/20721/commits/1a07600b4b0d08cffc7cd5c58af33fcd1ede558e

Depends on D10873.

Ref T1696.

Test Plan
ninja all check-all

Event Timeline

Fabien requested review of this revision.Jan 24 2022, 20:58
Fabien planned changes to this revision.Jan 24 2022, 21:45

Missing dependency, needs rebase

This revision is now accepted and ready to land.Jan 25 2022, 15:48
This revision was automatically updated to reflect the committed changes.