offerout: don't insist that invoice vendor match our vendor.

This was a bug in the spec, actually.

Reported-by: @shesek
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Fixes: #4666
This commit is contained in:
Rusty Russell
2021-07-21 15:08:14 +09:30
committed by neil saitug
parent cb9e0268a7
commit ce338dc88f
2 changed files with 21 additions and 4 deletions

View File

@@ -229,15 +229,11 @@ static struct command_result *listoffers_done(struct command *cmd,
* or unset exactly as they are in the `offer`:
* - `refund_for`
* - `description`
* - `vendor`
*/
err = inv_must_equal_offer(cmd, inv, refund_for);
if (err)
return err;
err = inv_must_equal_offer(cmd, inv, description);
if (err)
return err;
err = inv_must_equal_offer(cmd, inv, vendor);
if (err)
return err;