-
Notifications
You must be signed in to change notification settings - Fork 47
multi: add PSBT methods to wallet kit #105
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
Conversation
| } | ||
| ] | ||
| }, | ||
| "/walletrpc.WalletKit/SignPsbt": { |
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.
The FundPsbt and FinalizePsbt methods were already here.
positiveblue
left a comment
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.
👍
| return nil, nil, err | ||
| } | ||
|
|
||
| finalTx := wire.NewMsgTx(2) |
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.
out of scope for this PR but we may want to create some iota for the tx version?
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.
Hmm, it looks like we're only using it this way throughout the lnd codebase. But you're right, we should probably do it at some point :)
bhandras
left a comment
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 👌
| return nil, 0, nil, err | ||
| } | ||
|
|
||
| packet, err := psbt.NewFromRawBytes( |
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 suppose this is the kind of error that must never happen since otherwise the selected inputs will be locked forever?
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... Though the inputs wouldn't be locked forever, only 10 minutes.
Pull Request Checklist
in
lnd_services.goare updated.macaroon_recipes.goif your PR adds a new method that is calleddifferently than the RPC method it invokes.