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

fix: ignore extra btc vouts #4296

Merged
merged 2 commits into from
Nov 30, 2023
Merged

fix: ignore extra btc vouts #4296

merged 2 commits into from
Nov 30, 2023

Conversation

kylezs
Copy link
Contributor

@kylezs kylezs commented Nov 30, 2023

Pull Request

Closes: PRO-1007

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have updated documentation where appropriate.

Summary

Ignores extra BTC vouts in a single transaction.

@kylezs kylezs enabled auto-merge (squash) November 30, 2023 15:44
@kylezs kylezs merged commit ad9a377 into main Nov 30, 2023
39 checks passed
@kylezs kylezs deleted the fix/ignore-extra-btc-vouts branch November 30, 2023 16:09
for (vout, tx_out) in (0..).zip(&tx.output) {
if tx_out.value > 0 {

if let Some(deposit) = (0..)
Copy link
Contributor

Choose a reason for hiding this comment

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

A valid usecase would be this: You want to swap your bitcoin into DOT and ETH. You generate two deposit channels, and send funds to both in a single transaction. We should allow this, but it wouldn't work with the suggested change. We should only filter out outputs in the same TX to the same destination address

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.

None yet

3 participants