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

method to copy a PSBT input/output over to another PSBT #289

Open
niftynei opened this issue Aug 19, 2021 · 0 comments
Open

method to copy a PSBT input/output over to another PSBT #289

niftynei opened this issue Aug 19, 2021 · 0 comments

Comments

@niftynei
Copy link
Contributor

Occassionally in c-lightning we need to re-combine PSBTs, e.g. when a funding transaction is being RBF'd and we need to add more inputs to an existing PSBT. Our wallet APIs return PSBTs, and we need a way to move inputs btw two psbt structs.

maybe something like

int psbt_copy_input(struct wally_psbt src_psbt, struct wally_psbt dst_psbt, size_t src_idx);

Where the src_idx is the input to copy over. They're added to the end of the dst_psbt.

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

No branches or pull requests

1 participant