mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-20 21:44:29 +01:00
pytest: test that we don't change our payer_key calculation.
If we do, an upgrade would mean we can no longer get refunds on old invoices. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -380,9 +380,12 @@ static struct command_result *param_b12_invreq(struct command *cmd,
|
||||
cmd->ld->our_features, chainparams, &fail);
|
||||
if (!*invreq)
|
||||
return command_fail_badparam(cmd, name, buffer, tok, fail);
|
||||
#if !DEVELOPER
|
||||
/* We use this for testing with known payer_info */
|
||||
if ((*invreq)->payer_info)
|
||||
return command_fail_badparam(cmd, name, buffer, tok,
|
||||
"must not have payer_info");
|
||||
#endif
|
||||
if ((*invreq)->payer_key)
|
||||
return command_fail_badparam(cmd, name, buffer, tok,
|
||||
"must not have payer_key");
|
||||
|
||||
Reference in New Issue
Block a user