HomePhabricator

net: Use mockable time for tx download

Description

net: Use mockable time for tx download

Summary:

Two commits:

  - First commit changes to mockable time for tx download (refactoring,
should only have an effect on regtest)
  - Second commit adds a test that uses mocktime to test tx download

Backport of core PR16197.

Depends on D6146 and D6152.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jun 12 2019, 19:19
FabienCommitted on May 20 2020, 12:24
abc-botPushed on May 20 2020, 12:25
Reviewer
Restricted Project
Differential Revision
D6154: net: Use mockable time for tx download
Parents
rSTAGING670e5e820e82: scripted-diff: use self.sync_* methods
Branches
Unknown
Tags
Unknown