mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
df: assume this is a 'negotiation failure'
The most likely reason this failed is that we didn't like parameters the peer sent us.
This commit is contained in:
parent
9cffa769b8
commit
f62f8b9c6b
@ -1507,12 +1507,10 @@ static void accepter_start(struct state *state, const u8 *oc2_msg)
|
|||||||
if (!fromwire_dualopend_fail(msg, msg, &err_reason))
|
if (!fromwire_dualopend_fail(msg, msg, &err_reason))
|
||||||
master_badmsg(msg_type, msg);
|
master_badmsg(msg_type, msg);
|
||||||
|
|
||||||
u8 *errmsg = towire_errorfmt(tmpctx, &state->channel_id,
|
negotiation_failed(state, false, "%s", err_reason);
|
||||||
"%s", err_reason);
|
|
||||||
sync_crypto_write(state->pps, take(errmsg));
|
|
||||||
status_failed(STATUS_FAIL_MASTER_IO, "%s", errmsg);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fromwire_dualopend_got_offer_reply(state, msg,
|
if (!fromwire_dualopend_got_offer_reply(state, msg,
|
||||||
&state->accepter_funding,
|
&state->accepter_funding,
|
||||||
&state->feerate_per_kw_funding,
|
&state->feerate_per_kw_funding,
|
||||||
|
Loading…
Reference in New Issue
Block a user