Browse Source

utxo: fill in scriptPubkey to NULL

We need this so we can access it when populating bitcoin inputs in the
next commit
nifty/pset-pre
niftynei 4 years ago
committed by Christian Decker
parent
commit
85f395f7d4
  1. 1
      common/test/run-funding_tx.c
  2. 1
      lightningd/onchain_control.c

1
common/test/run-funding_tx.c

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

1
lightningd/onchain_control.c

@ -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…
Cancel
Save