mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
Makefile: use generic rules to make spec-derived sources.
Now we use the same Makefile rules for all CSV->C generation. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
a00179d557
commit
8150d28575
@@ -77,7 +77,7 @@ PLUGIN_COMMON_OBJS := \
|
||||
common/version.o \
|
||||
common/wireaddr.o \
|
||||
wire/fromwire.o \
|
||||
wire/gen_onion_wire.o \
|
||||
wire/onion_wiregen.o \
|
||||
wire/tlvstream.o \
|
||||
wire/towire.o
|
||||
|
||||
@@ -90,7 +90,7 @@ plugins/fundchannel: common/addr.o $(PLUGIN_FUNDCHANNEL_OBJS) $(PLUGIN_LIB_OBJS)
|
||||
|
||||
plugins/bcli: bitcoin/chainparams.o $(PLUGIN_BCLI_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
|
||||
|
||||
plugins/keysend: bitcoin/chainparams.o wire/tlvstream.o wire/gen_onion_wire.o $(PLUGIN_KEYSEND_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_PAY_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
|
||||
plugins/keysend: bitcoin/chainparams.o wire/tlvstream.o wire/onion_wiregen.o $(PLUGIN_KEYSEND_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_PAY_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)
|
||||
$(PLUGIN_KEYSEND_OBJS): $(PLUGIN_PAY_LIB_HEADER)
|
||||
|
||||
$(PLUGIN_ALL_OBJS): $(PLUGIN_LIB_HEADER)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <ccan/tal/str/str.h>
|
||||
#include <plugins/libplugin-pay.h>
|
||||
#include <plugins/libplugin.h>
|
||||
#include <wire/gen_onion_wire.h>
|
||||
#include <wire/onion_wiregen.h>
|
||||
|
||||
#define PREIMAGE_TLV_TYPE 5482373484
|
||||
#define KEYSEND_FEATUREBIT 55
|
||||
|
||||
@@ -862,7 +862,7 @@ failure_is_blockheight_disagreement(const struct payment *p,
|
||||
return true;
|
||||
}
|
||||
|
||||
static char *describe_failcode(const tal_t *ctx, enum onion_type failcode)
|
||||
static char *describe_failcode(const tal_t *ctx, enum onion_wire failcode)
|
||||
{
|
||||
char *rv = tal_strdup(ctx, "");
|
||||
if (failcode & BADONION) {
|
||||
@@ -889,7 +889,7 @@ static struct command_result *
|
||||
handle_final_failure(struct command *cmd,
|
||||
struct payment *p,
|
||||
const struct node_id *final_id,
|
||||
enum onion_type failcode)
|
||||
enum onion_wire failcode)
|
||||
{
|
||||
u32 unused;
|
||||
|
||||
@@ -905,7 +905,7 @@ handle_final_failure(struct command *cmd,
|
||||
paymod_log(p, LOG_DBG,
|
||||
"Final node %s reported %04x (%s) on route %s",
|
||||
type_to_string(tmpctx, struct node_id, final_id),
|
||||
failcode, onion_type_name(failcode),
|
||||
failcode, onion_wire_name(failcode),
|
||||
p->routetxt);
|
||||
|
||||
/* We use an exhaustive switch statement here so you get a compile
|
||||
@@ -998,14 +998,14 @@ handle_intermediate_failure(struct command *cmd,
|
||||
struct payment *p,
|
||||
const struct node_id *errnode,
|
||||
const struct route_hop *errchan,
|
||||
enum onion_type failcode)
|
||||
enum onion_wire failcode)
|
||||
{
|
||||
struct payment *root = payment_root(p);
|
||||
|
||||
paymod_log(p, LOG_DBG,
|
||||
"Intermediate node %s reported %04x (%s) at %s on route %s",
|
||||
type_to_string(tmpctx, struct node_id, errnode),
|
||||
failcode, onion_type_name(failcode),
|
||||
failcode, onion_wire_name(failcode),
|
||||
type_to_string(tmpctx, struct short_channel_id,
|
||||
&errchan->channel_id),
|
||||
p->routetxt);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include <common/bolt11.h>
|
||||
#include <plugins/libplugin.h>
|
||||
#include <wire/gen_onion_wire.h>
|
||||
#include <wire/onion_wiregen.h>
|
||||
|
||||
struct legacy_payload {
|
||||
struct short_channel_id scid;
|
||||
@@ -46,7 +46,7 @@ struct payment_result {
|
||||
struct preimage *payment_preimage;
|
||||
u32 code;
|
||||
const char* failcodename;
|
||||
enum onion_type failcode;
|
||||
enum onion_wire failcode;
|
||||
const u8 *raw_message;
|
||||
const char *message;
|
||||
u32 *erring_index;
|
||||
|
||||
Reference in New Issue
Block a user