mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
openingd: plug a funding msg leak.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
fc92ae515b
commit
b50c670f08
1 changed files with 3 additions and 3 deletions
|
@ -392,7 +392,7 @@ static u8 *funder_channel(struct state *state,
|
||||||
"push-msat must be < %"PRIu64,
|
"push-msat must be < %"PRIu64,
|
||||||
1000 * state->funding_satoshis);
|
1000 * state->funding_satoshis);
|
||||||
|
|
||||||
msg = towire_open_channel(state,
|
msg = towire_open_channel(NULL,
|
||||||
&state->chainparams->genesis_blockhash,
|
&state->chainparams->genesis_blockhash,
|
||||||
&state->channel_id,
|
&state->channel_id,
|
||||||
state->funding_satoshis, state->push_msat,
|
state->funding_satoshis, state->push_msat,
|
||||||
|
@ -410,7 +410,7 @@ static u8 *funder_channel(struct state *state,
|
||||||
&state->our_points.htlc,
|
&state->our_points.htlc,
|
||||||
&state->first_per_commitment_point[LOCAL],
|
&state->first_per_commitment_point[LOCAL],
|
||||||
channel_flags);
|
channel_flags);
|
||||||
sync_crypto_write(&state->cs, PEER_FD, msg);
|
sync_crypto_write(&state->cs, PEER_FD, take(msg));
|
||||||
|
|
||||||
peer_billboard(false,
|
peer_billboard(false,
|
||||||
"Funding channel: offered, now waiting for accept_channel");
|
"Funding channel: offered, now waiting for accept_channel");
|
||||||
|
@ -821,7 +821,7 @@ static u8 *fundee_channel(struct state *state, const u8 *open_channel_msg)
|
||||||
if (!check_config_bounds(state, &state->remoteconf, false))
|
if (!check_config_bounds(state, &state->remoteconf, false))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
msg = towire_accept_channel(state, &state->channel_id,
|
msg = towire_accept_channel(NULL, &state->channel_id,
|
||||||
state->localconf.dust_limit_satoshis,
|
state->localconf.dust_limit_satoshis,
|
||||||
state->localconf
|
state->localconf
|
||||||
.max_htlc_value_in_flight_msat,
|
.max_htlc_value_in_flight_msat,
|
||||||
|
|
Loading…
Add table
Reference in a new issue