Page MenuHomePhabricator

[chronik mock] Make sure history function is async so Promise.all() tests work
ClosedPublic

Authored by bytesofman on Apr 14 2023, 22:40.

Details

Summary

Discovered this bug in creating D13707

The chronik function to get one page of tx history is async. For efficiency, getting multiple pages is usually done with Promise.all(). This will only work on an array of promises, which need to be async functions.

Test Plan

See passing unit tests in D13707
Check unit tests for alias-server and ecash-herald here

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable