mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
patch remove-payer-backcompat.patch
This commit is contained in:
committed by
neil saitug
parent
e4e1396447
commit
424ac84263
@@ -553,8 +553,7 @@ int main(int argc, char *argv[])
|
||||
print_features(invreq->features);
|
||||
if (invreq->quantity)
|
||||
print_quantity(*invreq->quantity);
|
||||
/* Note: old format didn't include this, so we don't complain! */
|
||||
if (invreq->payer_signature)
|
||||
if (must_have(invreq, payer_signature))
|
||||
well_formed &= print_signature("invoice_request",
|
||||
"payer_signature",
|
||||
invreq->fields,
|
||||
@@ -563,18 +562,8 @@ int main(int argc, char *argv[])
|
||||
if (invreq->recurrence_counter) {
|
||||
print_recurrence_counter(invreq->recurrence_counter,
|
||||
invreq->recurrence_start);
|
||||
/* Old form included recurrence_signature */
|
||||
if (invreq->recurrence_signature)
|
||||
well_formed &= print_signature("invoice_request",
|
||||
"recurrence_signature",
|
||||
invreq->fields,
|
||||
invreq->payer_key,
|
||||
invreq->recurrence_signature);
|
||||
else /* New form definitely should have this! */
|
||||
must_have(invreq, payer_signature);
|
||||
} else {
|
||||
must_not_have(invreq, recurrence_start);
|
||||
must_not_have(invreq, recurrence_signature);
|
||||
}
|
||||
if (!print_extra_fields(invreq->fields))
|
||||
well_formed = false;
|
||||
|
||||
Reference in New Issue
Block a user