Skip to content
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

feat: show pending payments in transactions list #576

Closed
wants to merge 1 commit into from

Conversation

im-adithya
Copy link
Member

Fixes #426

Currently needs design input, didn't add much there as it would result in conflicts with Roland's (upcoming?) transaction list changes in #570

@@ -474,7 +474,7 @@ func (svc *transactionsService) LookupTransaction(ctx context.Context, paymentHa
return &transaction, nil
}

func (svc *transactionsService) ListTransactions(ctx context.Context, from, until, limit, offset uint64, unpaid bool, transactionType *string, lnClient lnclient.LNClient, appId *uint) (transactions []Transaction, err error) {
func (svc *transactionsService) ListTransactions(ctx context.Context, from, until, limit, offset uint64, pending, unpaid bool, transactionType *string, lnClient lnclient.LNClient, appId *uint) (transactions []Transaction, err error) {
Copy link
Contributor

@rolznz rolznz Aug 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this introduces another bool and now there is the complexity you see below.

What about we have a stateTypes which and use that. the default would be []string{"TRANSACTION_STATE_SETTLED"}

Copy link
Contributor

@rolznz rolznz Aug 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this is problematic because we only want to see pending outgoing payments. This needs more thought. Maybe a function that can alter the query could be passed in 🤔 This will also be a problem for NWC though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more complicated than I thought, let's move it to the next milestone

@rolznz
Copy link
Contributor

rolznz commented Sep 20, 2024

Closing in favor of #682

@rolznz rolznz closed this Sep 20, 2024
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.

Show pending payments
2 participants