-
Notifications
You must be signed in to change notification settings - Fork 103
Asset Invoice with sats value itest #1020
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
base: master
Are you sure you want to change the base?
Conversation
01d92fe
to
53446fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this wasn't marked for review yet, but did a drive-by anyway.
itest/litd_custom_channels_test.go
Outdated
// Yara with satoshi. This is a multi-hop payment going over 2 asset | ||
// channels, where the total asset value is less than the default anchor | ||
// amount of 354 sats. | ||
createAssetInvoice(t.t, dave, charlie, 1, assetID, withInvoiceErrSubStr( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing this edge case test? This should still apply IMO. The error message has changed a bit though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I thought I introduced an extra check implicitly with latest diff, yeah it was just the error. Rebased on latest master after merging #1040 and looks fine, will drop this commit
itest/litd_custom_channels_test.go
Outdated
@@ -2098,7 +2086,7 @@ func testCustomChannelsLiquidityEdgeCases(ctx context.Context, | |||
|
|||
// Now Fabia creates the normal invoice. | |||
invoiceResp = createAssetInvoice( | |||
t.t, erin, fabia, 10_000, assetID, | |||
t.t, erin, fabia, 0, assetID, withMsatAmount(170_000_000), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a new case for this new functionality? Or at least update the comment above this to point out that we're testing a specific case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah can add a comment describing what's happening, I'd also like to have a case explicitly for this, but seems like there isn't much to test here.
The invoice is meant to have as many units as you provide the request with, and the RFQ is meant to satisfy the volume of it. The first is checked in assets_test.go
, the latter is checked via the payment succeeding.
18f36e7
to
45a38e9
Compare
will wait for lightninglabs/taproot-assets#1462 to merge first as compilation fails against |
45a38e9
to
03013b5
Compare
@guggero: review reminder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
But needs to be based on top of #987 as well to fully satisfy the CI. Then the first commit can be dropped.
03013b5
to
7ccb618
Compare
Changed base to |
21e38f3
to
4225d65
Compare
7ccb618
to
1304cf2
Compare
Rebased and ready for review, @ffranr. |
1304cf2
to
9bfaa5d
Compare
I get
is that something you want to fix in this PR, or a separate one? |
Description
This itest tests the behavior exposed in lightninglabs/taproot-assets#1448
It is very minimal, and currently only to be used as a proof-of-concept sanity check for the above feature.