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

multi: add PSBT methods to wallet kit #105

Merged
merged 2 commits into from
Jun 10, 2022
Merged

multi: add PSBT methods to wallet kit #105

merged 2 commits into from
Jun 10, 2022

Conversation

guggero
Copy link
Member

@guggero guggero commented Jun 9, 2022

Pull Request Checklist

  • PR is opened against correct version branch.
  • Version compatibility matrix in the README and minimal required version
    in lnd_services.go are updated.
  • Update macaroon_recipes.go if your PR adds a new method that is called
    differently than the RPC method it invokes.

@guggero guggero requested review from bhandras and positiveblue June 9, 2022 11:52
@@ -868,6 +868,14 @@
}
]
},
"/walletrpc.WalletKit/SignPsbt": {
Copy link
Member Author

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.

Copy link
Contributor

@positiveblue positiveblue left a comment

Choose a reason for hiding this comment

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

👍

walletkit_client.go Outdated Show resolved Hide resolved
return nil, nil, err
}

finalTx := wire.NewMsgTx(2)
Copy link
Contributor

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?

Copy link
Member Author

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 :)

Copy link
Member

@bhandras bhandras left a 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(
Copy link
Member

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?

Copy link
Member Author

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.

@guggero guggero merged commit e70b910 into lnd-15-0 Jun 10, 2022
@guggero guggero deleted the psbt-methods branch June 10, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants