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:
niftynei 2020-12-10 14:26:54 -06:00 committed by Christian Decker
parent 9cffa769b8
commit f62f8b9c6b

View File

@ -1507,12 +1507,10 @@ static void accepter_start(struct state *state, const u8 *oc2_msg)
if (!fromwire_dualopend_fail(msg, msg, &err_reason))
master_badmsg(msg_type, msg);
u8 *errmsg = towire_errorfmt(tmpctx, &state->channel_id,
"%s", err_reason);
sync_crypto_write(state->pps, take(errmsg));
status_failed(STATUS_FAIL_MASTER_IO, "%s", errmsg);
negotiation_failed(state, false, "%s", err_reason);
return;
}
if (!fromwire_dualopend_got_offer_reply(state, msg,
&state->accepter_funding,
&state->feerate_per_kw_funding,