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

itest: expect failure on direct rfq peer btc invoices #916

Open
wants to merge 2 commits into
base: update-to-lnd-18-4
Choose a base branch
from

Conversation

GeorgeTsagk
Copy link
Member

@GeorgeTsagk GeorgeTsagk commented Dec 11, 2024

Description

Previously we'd consider it acceptable to settle direct rfq peer
invoices, which included no rfq scid, with asset HTLCs. This behavior
has been updated on the tapd invoice manager and we no longer accept
asset HTLCs on invoices that do not expect assets. This commit updates
such payments in our itests to instead expect a failure.

Tapd dependency: lightninglabs/taproot-assets#1244
Lnd dependency: lightningnetwork/lnd#9357

Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

itest seems to fail.

t.t, charlie, dave, dave, 20_000, assetID, withSmallShards(),
withFailure(lnrpc.Payment_FAILED, lnrpc.PaymentFailureReason_FAILURE_REASON_INCORRECT_PAYMENT_DETAILS),
Copy link
Member

Choose a reason for hiding this comment

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

lll, here and below. Can use failureIncorrectDetails that's defined in assets_test.go instead.

@GeorgeTsagk
Copy link
Member Author

itest seems to fail.

interesting, could be flaky, didn't hit this on local tests

@GeorgeTsagk
Copy link
Member Author

GeorgeTsagk commented Dec 11, 2024

also linter seems to fail here with
https://github.com/lightninglabs/lightning-terminal/actions/runs/12275164256/job/34257220772?pr=916#step:5:293

go: github.com/lightninglabs/lightning-terminal imports
	github.com/lightningnetwork/lnd/kvdb imports
	github.com/lightningnetwork/lnd/kvdb/etcd imports
	go.etcd.io/etcd/server/v3/embed: mkdir /home/runner/go/pkg/mod/cache/download/go.etcd.io/etcd/server: permission denied

passes locally

Previously we'd consider it acceptable to settle direct rfq peer
invoices, which included no rfq scid, with asset HTLCs. This behavior
has been updated on the tapd invoice manager and we no longer accept
asset HTLCs on invoices that do not expect assets. This commit updates
such payments in our itests to instead expect a failure.
Copy link
Contributor

@ffranr ffranr left a comment

Choose a reason for hiding this comment

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

👍 need to remove the temp commit (waiting on dep I guess?), otherwise looks good.

@GeorgeTsagk
Copy link
Member Author

thanks @ffranr , currently working on resolving an error with the htlc force-close test, will push once it has been resolved

Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

LGTM pending dependant PRs and nit mentioned in earlier review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

4 participants