-
Notifications
You must be signed in to change notification settings - Fork 224
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
feat: gateway can pay invoices as itself #5868
Conversation
ede01d1
to
34db077
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.
need to distinguish between when the gateway itself is paying or creating invoices or when it's doing actions on behalf of a client contract
947c724
to
32528ee
Compare
32528ee
to
9e96350
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.
tested locally, looks good, just rebase and we can land
feat: gateway can pay invoices as itself
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.
Needs to be an authenticated endpoint
9e96350
to
5440279
Compare
max_fee: max_fee_msats, | ||
}) | ||
.await?; | ||
println!("{response}"); |
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.
Is there a reason why we're not using print_response
?
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.
Yes, for types that implement std::fmt::Display
, print_response()
will wrap the value in quotations where as using println!()
simply prints the value.
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.
Just small nits
5440279
to
c88021b
Compare
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin releases/v0.4
git worktree add -d .worktree/backport-5868-to-releases/v0.4 origin/releases/v0.4
cd .worktree/backport-5868-to-releases/v0.4
git switch --create backport-5868-to-releases/v0.4
git cherry-pick -x c88021b4d136d83bc1da79bb76e99eaeac52f6ed |
Gateway can pay invoices as itself (i.e. no e-cash swap, just pay using its own funds)