HomePhabricator

[tools] add PoissonNextSend method that returns mockable time

Description

[tools] add PoissonNextSend method that returns mockable time

Summary:

Introduce a Poisson helper method that wraps the existing method to return std::chrono::duration type, which is mockable.

This is a backport of Core PR17243

Test Plan: ninja && ninja check

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, majcosta

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, majcosta

Subscribers: majcosta

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

Details

Provenance
Amiti Uttarwar <amiti@uttarwar.org>Authored on Nov 4 2020, 07:41
PiRKCommitted on Nov 4 2020, 07:42
abc-botPushed on Nov 4 2020, 07:47
Reviewer
Restricted Owners Package
Differential Revision
D8252: [tools] add PoissonNextSend method that returns mockable time
Parents
rABCfde7066c32f3: test: rm ascii art in rpc_fundrawtransaction
Branches
Unknown
Tags
Unknown