mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
BOLTs: update to more recent bolt12 spec.
It's 2b7ad577d7a790b302bd1aa044b22c809c76e49d, which reverts the point32 changes. It also restores send_invoice in `invoice`, which we had removed from spec and put into the recurrence patch. I originally had implemented compatibility, but other changes which followed this are far too widespread. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-EXPERIMENTAL: offers: complete rework of spec from other teams (yay!) breaks previous compatibility (boo!)
This commit is contained in:
@@ -152,9 +152,9 @@ static void print_issuer(const char *issuer)
|
||||
printf("issuer: %.*s\n", (int)tal_bytelen(issuer), issuer);
|
||||
}
|
||||
|
||||
static void print_node_id(const struct point32 *node_id)
|
||||
static void print_node_id(const struct pubkey *node_id)
|
||||
{
|
||||
printf("node_id: %s\n", type_to_string(tmpctx, struct point32, node_id));
|
||||
printf("node_id: %s\n", type_to_string(tmpctx, struct pubkey, node_id));
|
||||
}
|
||||
|
||||
static void print_quantity_min(u64 min)
|
||||
@@ -307,7 +307,7 @@ static void print_refund_for(const struct sha256 *payment_hash)
|
||||
static bool print_signature(const char *messagename,
|
||||
const char *fieldname,
|
||||
const struct tlv_field *fields,
|
||||
const struct point32 *node_id,
|
||||
const struct pubkey *node_id,
|
||||
const struct bip340sig *sig)
|
||||
{
|
||||
struct sha256 m, shash;
|
||||
@@ -363,11 +363,11 @@ static bool print_recurrence_counter_with_base(const u32 *recurrence_counter,
|
||||
return true;
|
||||
}
|
||||
|
||||
static void print_payer_key(const struct point32 *payer_key,
|
||||
static void print_payer_key(const struct pubkey *payer_key,
|
||||
const u8 *payer_info)
|
||||
{
|
||||
printf("payer_key: %s",
|
||||
type_to_string(tmpctx, struct point32, payer_key));
|
||||
type_to_string(tmpctx, struct pubkey, payer_key));
|
||||
if (payer_info)
|
||||
printf(" (payer_info %s)", tal_hex(tmpctx, payer_info));
|
||||
printf("\n");
|
||||
|
||||
Reference in New Issue
Block a user