T2447
Depends on D12051
Sort tx history by blockheightand timeFirstSeen. For unconfirmed txs, sort by timeFirstSeen. Most recent transactions appear earliest in the tx history array.
Differential D12052
[Cashtab] [chronik tx history p3] Add a function to sort chronik tx history of all addresses by blockheight and timeFirstSeen bytesofman on Sep 23 2022, 18:35. Authored by
Details
T2447 Depends on D12051 Sort tx history by blockheightand timeFirstSeen. For unconfirmed txs, sort by timeFirstSeen. Most recent transactions appear earliest in the tx history array. Review unit tests and mocks to confirm desired tx order. npm start
Diff Detail
Event TimelineComment Actions The post-confirmation sorting needs a bit more precision. This is after the 3 txs have each received 3 confirmations, where the 2nd tx is showing as the most recent For reference, the timeFIrstSeen via console log seems to show the following: Comment Actions Oh -- never mind about the txids Note: the tx history being rendered in the app is still being done with bch-api here. So, the rendered history is still expected to be kind of random. What matters is chronikTxHistory as flattened array, sorted by blockheight and time first seen as seen in the dev log on npm start. Later in this stack, once that has enough info, I will get the tx history to render from this chronik info. So far, we're just getting the functions and unit tests in. |