nostrdb: Makefile: build using ccan/ versions of files.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Rusty Russell
2024-08-17 14:57:12 +09:30
committed by Daniel D’Aquino
parent 0ac25b7aa3
commit fc30b68c40
10 changed files with 24 additions and 23 deletions

View File

@@ -1,9 +1,9 @@
#include "../config.h"
#include <assert.h>
#include "mem.h"
#include "talstr.h"
#include "ccan/mem/mem.h"
#include "ccan/tal/str/str.h"
#include "amount.h"
#include "overflows.h"
#include <assert.h>
#include <inttypes.h>
bool amount_sat_to_msat(struct amount_msat *msat,

View File

@@ -1,8 +1,8 @@
#ifndef LIGHTNING_COMMON_AMOUNT_H
#define LIGHTNING_COMMON_AMOUNT_H
#include "../config.h"
#include "short_types.h"
#include "tal.h"
#include "ccan/short_types/short_types.h"
#include "ccan/tal/tal.h"
#define MSAT_PER_SAT ((u64)1000)
#define SAT_PER_BTC ((u64)100000000)

View File

@@ -2,7 +2,7 @@
#define LIGHTNING_COMMON_BECH32_UTIL_H
#include "../config.h"
#include "tal.h"
#include "ccan/tal/tal.h"
#include "hash_u5.h"
/**

View File

@@ -10,18 +10,18 @@
//#include "address.h"
//#include "script.h"
#include "bech32.h"
#include "utf8.h"
#include "../compiler.h"
#include "../endian.h"
#include "list.h"
#include "talstr.h"
#include "tal.h"
#include "ccan/utf8/utf8.h"
#include "ccan/compiler//compiler.h"
#include "ccan/endian/endian.h"
#include "ccan/list/list.h"
#include "ccan/tal/str/str.h"
#include "ccan/tal/tal.h"
#include "node_id.h"
#include "bech32_util.h"
#include "bolt11.h"
#include "amount.h"
#include "array_size.h"
#include "structeq.h"
#include "ccan/array_size/array_size.h"
#include "ccan/structeq/structeq.h"
//#include "features.h"
#include <errno.h>

View File

@@ -1,10 +1,10 @@
#ifndef LIGHTNING_COMMON_BOLT11_H
#define LIGHTNING_COMMON_BOLT11_H
#include "short_types.h"
#include "ccan/short_types/short_types.h"
#include "hash_u5.h"
#include "amount.h"
#include "list.h"
#include "ccan/list/list.h"
#include "amount.h"
#include "node_id.h"
//#include <secp256k1_recovery.h>

View File

@@ -1,5 +1,6 @@
#include "../config.h"
#include "../endian.h"
#include "ccan/endian/endian.h"
#include "ccan/short_types/short_types.h"
#include "hash_u5.h"
#include <string.h>

View File

@@ -1,8 +1,8 @@
/* bech32 (thus bolt11) deal in 5-bit values */
#ifndef LIGHTNING_COMMON_HASH_U5_H
#define LIGHTNING_COMMON_HASH_U5_H
#include "../sha256.h"
#include "short_types.h"
#include "ccan/crypto/sha256/sha256.h"
#include "ccan/short_types/short_types.h"
/* Type to annotate a 5 bit value. */
typedef unsigned char u5;

View File

@@ -2,8 +2,8 @@
#ifndef LIGHTNING_COMMON_NODE_ID_H
#define LIGHTNING_COMMON_NODE_ID_H
#include "../config.h"
#include "short_types.h"
#include "tal.h"
#include "ccan/short_types/short_types.h"
#include "ccan/tal/tal.h"
struct node_id {
u8 k[33];

View File

@@ -1,7 +1,7 @@
#ifndef LIGHTNING_COMMON_OVERFLOWS_H
#define LIGHTNING_COMMON_OVERFLOWS_H
#include "../config.h"
#include "short_types.h"
#include "ccan/short_types/short_types.h"
static inline bool add_overflows_size_t(uint64_t a, uint64_t b)
{