HomePhabricator

[chronik-client] Properly handle txs ordering in the test

Description

[chronik-client] Properly handle txs ordering in the test

Summary:
Unconfirmed txs are sorted by time first seen, then txid.
Confirmed txs are sorted by txid.
History txs are sorted by reverse time first seen, then reverse txid.

Let's not assume the time is the same in the test, because time first seen is not mockable. Instead we actually perform the appropriated sort.

Test Plan:

./contrib/teamcity/build-configurations.py chronik-client-integration-tests

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
FabienAuthored on May 12 2025, 21:49
FabienPushed on May 13 2025, 07:20
Reviewer
Restricted Project
Differential Revision
D18084: [chronik-client] Properly handle txs ordering in the test
Parents
rABCd9be9a3dbe35: [chronik] Electrum: add the blockchain.headers.subscribe endpoint
Branches
Unknown
Tags
Unknown