Skip to content

Commit

Permalink
Merge branch 'master' into cln-plugin-set-featurebits
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDeSmedt committed Jan 29, 2024
2 parents 94c1e77 + af4b244 commit 32294fb
Show file tree
Hide file tree
Showing 5,721 changed files with 12,123 additions and 2,812 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
22 changes: 22 additions & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,14 @@
"FetchInvoice.invoice": 1,
"FetchInvoice.next_period": 3
},
"FundchannelChannel_type": {
"FundChannel.channel_type.bits[]": 1,
"FundChannel.channel_type.names[]": 2
},
"FundchannelRequest": {
"FundChannel.amount": 1,
"FundChannel.announce": 3,
"FundChannel.channel_type[]": 14,
"FundChannel.close_to": 6,
"FundChannel.compact_lease": 8,
"FundChannel.feerate": 2,
Expand All @@ -753,6 +758,7 @@
},
"FundchannelResponse": {
"FundChannel.channel_id": 4,
"FundChannel.channel_type": 7,
"FundChannel.close_to": 5,
"FundChannel.mindepth": 6,
"FundChannel.outnum": 3,
Expand Down Expand Up @@ -3026,6 +3032,22 @@
"added": "pre-v0.10.1",
"deprecated": false
},
"FundChannel.channel_type": {
"added": "v24.02",
"deprecated": false
},
"FundChannel.channel_type.bits[]": {
"added": "v24.02",
"deprecated": false
},
"FundChannel.channel_type.names[]": {
"added": "v24.02",
"deprecated": false
},
"FundChannel.channel_type[]": {
"added": "v24.02",
"deprecated": false
},
"FundChannel.close_to": {
"added": "pre-v0.10.1",
"deprecated": false
Expand Down
124 changes: 113 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Extract version from git, or if we're from a zipfile, use dirname
VERSION=$(shell git describe --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc\-]*\)$$|\1|gp')

# Next release.
CLN_NEXT_VERSION := v24.02

# --quiet / -s means quiet, dammit!
ifeq ($(findstring s,$(word 1, $(MAKEFLAGS))),s)
ECHO := :
Expand Down Expand Up @@ -249,8 +252,8 @@ CPATH := /usr/local/include
LIBRARY_PATH := /usr/local/lib
endif

CPPFLAGS += -DBINTOPKGLIBEXECDIR="\"$(shell sh tools/rel.sh $(bindir) $(pkglibexecdir))\""
CFLAGS = $(CPPFLAGS) $(CWARNFLAGS) $(CDEBUGFLAGS) $(COPTFLAGS) -I $(CCANDIR) $(EXTERNAL_INCLUDE_FLAGS) -I . -I$(CPATH) $(SQLITE3_CFLAGS) $(POSTGRES_INCLUDE) $(FEATURES) $(COVFLAGS) $(DEV_CFLAGS) -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS $(PIE_CFLAGS) $(COMPAT_CFLAGS) $(CSANFLAGS) -DBUILD_ELEMENTS=1
CPPFLAGS += -DCLN_NEXT_VERSION="\"$(CLN_NEXT_VERSION)\"" -DBINTOPKGLIBEXECDIR="\"$(shell sh tools/rel.sh $(bindir) $(pkglibexecdir))\""
CFLAGS = $(CPPFLAGS) $(CWARNFLAGS) $(CDEBUGFLAGS) $(COPTFLAGS) -I $(CCANDIR) $(EXTERNAL_INCLUDE_FLAGS) -I . -I$(CPATH) $(SQLITE3_CFLAGS) $(POSTGRES_INCLUDE) $(FEATURES) $(COVFLAGS) $(DEV_CFLAGS) -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS $(PIE_CFLAGS) $(COMPAT_CFLAGS) $(CSANFLAGS)

# If CFLAGS is already set in the environment of make (to whatever value, it
# does not matter) then it would export it to subprocesses with the above value
Expand Down
14 changes: 6 additions & 8 deletions bitcoin/base58.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,14 @@ static bool from_base58(u8 *version,
struct ripemd160 *rmd,
const char *base58, size_t base58_len)
{
u8 buf[1 + sizeof(*rmd) + 4];
/* Avoid memcheck complaining if decoding resulted in a short value */
size_t buflen = sizeof(buf);
memset(buf, 0, buflen);
char *terminated_base58 = tal_dup_arr(NULL, char, base58, base58_len, 1);
terminated_base58[base58_len] = '\0';
/* Initialize to avoid memcheck complaining if decoding a short value */
u8 buf[1 + sizeof(*rmd) + 4] = { 0 };
const size_t buflen = sizeof(buf);
const uint32_t flags = BASE58_FLAG_CHECKSUM;

size_t written = 0;
int r = wally_base58_to_bytes(terminated_base58, BASE58_FLAG_CHECKSUM, buf, buflen, &written);
tal_free(terminated_base58);
int r = wally_base58_n_to_bytes(base58, base58_len, flags,
buf, buflen, &written);
if (r != WALLY_OK || written > buflen) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion bitcoin/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ bitcoin_block_from_hex(const tal_t *ctx, const struct chainparams *chainparams,
b->tx = tal_arr(b, struct bitcoin_tx *, num);
b->txids = tal_arr(b, struct bitcoin_txid, num);
for (i = 0; i < num; i++) {
b->tx[i] = pull_bitcoin_tx(b->tx, &p, &len);
b->tx[i] = pull_bitcoin_tx_only(b->tx, &p, &len);
b->tx[i]->chainparams = chainparams;
bitcoin_txid(b->tx[i], &b->txids[i]);
}
Expand Down

0 comments on commit 32294fb

Please sign in to comment.