diff --git a/bitcoin/tx.c b/bitcoin/tx.c index b547fbb15..d6c6714d4 100644 --- a/bitcoin/tx.c +++ b/bitcoin/tx.c @@ -497,7 +497,7 @@ struct bitcoin_tx *pull_bitcoin_tx(const tal_t *ctx, tx->output = tal_arr(tx, struct bitcoin_tx_output, tx->output_count); for (i = 0; i < tx->output_count; i++) pull_output(tx, cursor, max, tx->output + i); - + if (flag & SEGREGATED_WITNESS_FLAG) { for (i = 0; i < tx->input_count; i++) pull_witness(tx->input, i, cursor, max); diff --git a/daemon/secrets.c b/daemon/secrets.c index aac0ed9b3..d36f84024 100644 --- a/daemon/secrets.c +++ b/daemon/secrets.c @@ -157,7 +157,7 @@ void peer_secrets_init(struct peer *peer) new_keypair(peer->dstate, &peer->secrets->commit, &peer->local.commitkey); new_keypair(peer->dstate, &peer->secrets->final, &peer->local.finalkey); - randombytes_buf(peer->secrets->revocation_seed.u.u8, sizeof(peer->secrets->revocation_seed.u.u8)); + randombytes_buf(peer->secrets->revocation_seed.u.u8, sizeof(peer->secrets->revocation_seed.u.u8)); shachain_init(&peer->their_preimages); }