lightningd/bitcoind: use the Bitcoin plugin for getutxout

This commit is contained in:
darosior
2020-01-09 16:38:12 +01:00
committed by Rusty Russell
parent 78cb921b80
commit c79ab0f1b0
8 changed files with 137 additions and 131 deletions

View File

@@ -774,11 +774,11 @@ struct command_result *cancel_channel_before_broadcast(struct command *cmd,
/* Note: The above check and this check can't completely ensure that
* the funding transaction isn't broadcast. We can't know if the funding
* is broadcast by external wallet and the transaction hasn't been onchain. */
bitcoind_gettxout(cmd->ld->topology->bitcoind,
&cancel_channel->funding_txid,
cancel_channel->funding_outnum,
process_check_funding_broadcast,
notleak(cc));
bitcoind_getutxout(cmd->ld->topology->bitcoind,
&cancel_channel->funding_txid,
cancel_channel->funding_outnum,
process_check_funding_broadcast,
notleak(cc));
return command_still_pending(cmd);
}