HomePhabricator

[alias-server] Add avalancheCheckWaitInterval as a parameter to prevent 10s…

Description

[alias-server] Add avalancheCheckWaitInterval as a parameter to prevent 10s delays in unit tests

Summary:
T3060

Depends on D13631

App should wait ~10s before checking if a found block is avalanche finalized. We don't want to do this in unit tests.

So, make this a parameter and pass to all required functions.

Test Plan:
npm test
npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
bytesofmanAuthored on Apr 8 2023, 13:47
bytesofmanPushed on Apr 12 2023, 14:20
Reviewer
Restricted Project
Differential Revision
D13633: [alias-server] Add avalancheCheckWaitInterval as a parameter to prevent 10s delays in unit tests
Parents
rABC7322e1aa55af: [alias-server] Get block height in handleBlockConnected
Branches
Unknown
Tags
Unknown