mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
utxo: fill in scriptPubkey to NULL
We need this so we can access it when populating bitcoin inputs in the next commit
This commit is contained in:
parent
cc6eba1d72
commit
85f395f7d4
@ -177,6 +177,7 @@ int main(int argc, const char *argv[])
|
||||
utxo.amount = AMOUNT_SAT(5000000000);
|
||||
utxo.is_p2sh = false;
|
||||
utxo.close_info = NULL;
|
||||
utxo.scriptPubkey = NULL;
|
||||
funding_sat = AMOUNT_SAT(10000000);
|
||||
fee = AMOUNT_SAT(13920);
|
||||
|
||||
|
@ -334,6 +334,7 @@ static void onchain_add_utxo(struct channel *channel, const u8 *msg)
|
||||
u->close_info->channel_id = channel->dbid;
|
||||
u->close_info->peer_id = channel->peer->id;
|
||||
u->spendheight = NULL;
|
||||
u->scriptPubkey = NULL;
|
||||
|
||||
if (!fromwire_onchain_add_utxo(
|
||||
u, msg, &u->txid, &u->outnum, &u->close_info->commitment_point,
|
||||
|
Loading…
Reference in New Issue
Block a user