Skip to content

fix: sort onchain transactions by createdAt #1407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

im-adithya
Copy link
Member

Sometimes the onchain txs are not in sorted order (noticed in LND), this fixes that.

@im-adithya im-adithya requested a review from rolznz June 11, 2025 12:07
@rolznz
Copy link
Contributor

rolznz commented Jun 12, 2025

@im-adithya I don't think this should be done on the frontend especially if we add paging later. Can it be fixed in LND? LDK is already sorted correctly

@im-adithya
Copy link
Member Author

Ah true, I'll try to fix this in LND backend 👍

@im-adithya
Copy link
Member Author

im-adithya commented Jun 12, 2025

Hmmm weird, we already do the sorting in the backend (for both lnd/ldk), I remember seeing some anomaly in the list. Maybe it was "Pending" transactions being listed in between sent/receive txs, should we show those pending ones on top?

Edit: Yes, but this isn't a sorting problem, it is a confirmed tx which is being shown as pending, I'll to see if we can fix somehow

Screenshot 2025-06-12 at 12 13 52 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants