Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Transactions are sorted by timestamp and order #396

Open
esen opened this issue Jun 19, 2019 · 0 comments
Open

Transactions are sorted by timestamp and order #396

esen opened this issue Jun 19, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@esen
Copy link
Member

esen commented Jun 19, 2019

Currently, transactions are sorted by timestamp, then order. This sometimes leads to case when transaction included in higher block is returned next to the transaction included in lower block. Because timestamp of two blocks are the same. This only may happen in testnet in real world, but we still should sort by block height first

Example:
https://chain.so/api/v2/block/BTCTEST/00000000000040b0a1862451e646fc5ab82c54881e7d9746e6571d4a77600449
https://chain.so/api/v2/block/BTCTEST/00000000000078957dd7143156e4d577304a9dc4eaf88fb5de7987a4f18807e2

@esen esen added the bug Something isn't working label Jun 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant