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:
niftynei 2020-05-21 14:48:03 -05:00 committed by Christian Decker
parent cc6eba1d72
commit 85f395f7d4
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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,