df: patch hole where we wouldn't notify peer of failure

This commit is contained in:
niftynei 2021-01-13 19:55:49 -06:00 committed by neil saitug
parent 367e377d5a
commit 84ed942dee

View file

@ -525,6 +525,9 @@ openchannel2_hook_deserialize(struct openchannel2_payload *payload,
if (!payload->psbt &&
!amount_sat_eq(payload->accepter_funding, AMOUNT_SAT(0))) {
/* Gotta give a PSBT if you set the accepter_funding amount */
/* Let dualopend know we've failed */
payload->err_msg = "Client error. Unable to continue";
openchannel2_hook_cb(payload);
return false;
}