mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
mkfunding: no scriptPubKey on utxo causing crash, so we add one
Changelog-Fixed: devtools: `mkfunding` command no longer crashes (abort) Fixes #5363 Assisted-By: @TKChattoraj
This commit is contained in:
parent
87616b7ffc
commit
7bd0d7641c
@ -144,6 +144,9 @@ int main(int argc, char *argv[])
|
||||
type_to_string(NULL, struct amount_sat, &input.amount),
|
||||
type_to_string(NULL, struct amount_sat, &fee));
|
||||
|
||||
/* Find the P2WPKH script from input pubkey */
|
||||
input.scriptPubkey = scriptpubkey_p2wpkh(NULL, &inputkey);
|
||||
|
||||
/* No change output, so we don't need a bip32 base. */
|
||||
tx = funding_tx(NULL, &input, funding_amount,
|
||||
&funding_localkey, &funding_remotekey);
|
||||
|
Loading…
Reference in New Issue
Block a user