mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-18 20:44:27 +01:00
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:
committed by
neil saitug
parent
cb9e0268a7
commit
ce338dc88f
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user