Skip to content

itest: add BTC-only keysend and invoice payments #775

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 2 commits into from
Jun 22, 2024

Conversation

guggero
Copy link
Member

@guggero guggero commented Jun 21, 2024

To make sure asset channels also function properly with BTC-only
payments, we add a keysend and invoice payment to the integration tests.

Copy link
Member

@GeorgeTsagk GeorgeTsagk left a comment

Choose a reason for hiding this comment

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

LGTM 🌳

// We should also be able to do a multi-hop BTC only payment, paying an
// invoice from Erin by Charlie.
createAndPayNormalInvoiceWithBtc(t.t, charlie, erin, 2000)
logBalance(t.t, nodes, assetID, "after BTC only invoice")
Copy link
Member

Choose a reason for hiding this comment

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

does this also assert that the balance is as expected?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, but we do that later. That's just for visual confirmation. And currently we don't track and/or assert the BTC balance. But since we don't really change any logic in the BTC-only flow, just making sure the payment arrives should be enough.

guggero added 2 commits June 21, 2024 17:43
To make sure asset channels also function properly with BTC-only
payments, we add a keysend and invoice payment to the integration tests.
@guggero guggero requested a review from Roasbeef June 21, 2024 15:45
Copy link
Member

@jamaljsr jamaljsr left a comment

Choose a reason for hiding this comment

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

I can confirm that the sats are flowing in both directions over custom channels. I tested direct peer and multi-hop payments. Fantastic! 👏

@guggero guggero merged commit 6b991a5 into 0-19-staging Jun 22, 2024
11 of 12 checks passed
@guggero guggero deleted the btc-only-htlcs branch June 22, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants