Skip to content

sp improv #2437

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

Merged
merged 6 commits into from
Aug 21, 2025
Merged

sp improv #2437

merged 6 commits into from
Aug 21, 2025

Conversation

rafael-xmr
Copy link
Contributor

No description provided.

Comment on lines 815 to 819
bitcoinTx.unspents!.forEach((unspent) {
addresses.add(bitcoinWallet.walletAddresses.silentAddresses
.firstWhere((address) => address.silentPaymentTweak == unspent.silentPaymentLabel)
.address);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

wrap this with a try and catch, as this will be probably called with also normal transactions, so I believe firstWhere would throw an exception at that time

also rename the function to getSPTransactionAddresses since it only relates to SP

@OmarHatem28 OmarHatem28 merged commit 16f058e into main Aug 21, 2025
5 checks passed
@OmarHatem28 OmarHatem28 deleted the silent-payments-improv branch August 21, 2025 02:06
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