HomePhabricator

Migrate seeder to use node's sleep utility function

Description

Migrate seeder to use node's sleep utility function

Summary:
UninterruptibleSleep already provides a way to use std::chrono::duration.
This patch improves code readability and make changes in D10666 less error prone by
removing seeder's Sleep in favor of UninterruptibleSleep that the node uses.

Test Plan:

ninja check-seeder bitcoin-seeder
./src/seeder/bitcoin-seeder

Examine output in dnsseed.dump. Use ls -al to verify dump is occurring at expected intervals.

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11119

Details

Provenance
thonkleAuthored on Feb 26 2022, 22:24
thonklePushed on Mar 5 2022, 17:40
Reviewer
Restricted Owners Package
Differential Revision
D11119: Migrate seeder to use node's sleep utility function
Parents
rABC77e29e17d235: [avalanche] Add an accessor for the staked amount from a proof
Branches
Unknown
Tags
Unknown