Skip to content

Commit 79a1d22

Browse files
authored
Merge branch 'ElementsProject:master' into bolt12_offer_issuer_id
2 parents 0faacb8 + 725c417 commit 79a1d22

File tree

216 files changed

+1506
-3560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+1506
-3560
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
> [!IMPORTANT]
22
>
3-
> 25.05 FREEZE MAY 05TH: Non-bugfix PRs not ready by this date will wait for 25.08.
3+
> 25.09 FREEZE July 28TH: Non-bugfix PRs not ready by this date will wait for 25.12.
44
>
5-
> RC1 is scheduled on _May 12th_, RC2 on _May 16th_, ...
5+
> RC1 is scheduled on _August 11th_
66
>
7-
> The final release is on MAY 20TH.
7+
> The final release is scheduled for September 1st.
88
99

1010
## Checklist

.github/scripts/sync-rpc-cmds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# readme url
88
URL = "https://dash.readme.com/api/v1"
99
# category id for API reference
10-
CATEGORY_ID = "63e4e160c60b2e001dd1cc4e"
10+
CATEGORY_ID = "685ce4df1df887006ff221c5"
1111
CATEGORY_SLUG = "json-rpc-apis"
1212

1313

.github/workflows/readme-rpc-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Python
2424
uses: actions/setup-python@v5
2525
with:
26-
python-version: 3.8
26+
python-version: 3.9
2727

2828
- name: Install python modules
2929
run: |

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
25.05rc1
1+
25.05

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7-
## [25.05rc1] - 2025-05-16: "CODENAME"
7+
## [25.05] - 2025-06-16: "Satoshi's OP_RETURN Opinion"
88

9-
This release named by @USERNAME.
9+
This release named by Peter Neuroth (@nepet).
10+
11+
**WARNING**: `--experimental-splicing` is incompatible with previous CLN versions! You will not
12+
be able to reestablish channels with older nodes at all, if this is enabled!
1013

1114
### Added
1215

@@ -30,7 +33,7 @@ This release named by @USERNAME.
3033

3134
### Changed
3235

33-
- Splicing: The splicing protocol is now compatible with Eclair. ([#8021])
36+
- Splicing: The splicing protocol is now compatible with Eclair, incompatible with previous CLN versions ([#8021])
3437
- Protocol: We now exchange `announcement_signatures` as soon as we're ready, rather than waiting for 6 blocks (as per recent BOLT update.) ([#8136])
3538
- Protocol: We won't forget still-opening channels after 2016 blocks, unless there are more than 100. ([#8162])
3639
- Reckless: Accepts a source url or local directory as an argument to `reckless install`. ([#8266])

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VERSION=$(shell git describe --tags --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc\-]*\)$$|v\1|gp')
55

66
# Next release.
7-
CLN_NEXT_VERSION := v25.05
7+
CLN_NEXT_VERSION := v25.09
88

99
# --quiet / -s means quiet, dammit!
1010
ifeq ($(findstring s,$(word 1, $(MAKEFLAGS))),s)
@@ -26,7 +26,7 @@ CCANDIR := ccan
2626

2727
# Where we keep the BOLT RFCs
2828
BOLTDIR := ../bolts/
29-
DEFAULT_BOLTVERSION := ccfa38ed4f592c3711156bb4ded77f44ec01101d
29+
DEFAULT_BOLTVERSION := 68881992b97f20aca29edf7a4d673b8e6a70379a
3030
# Can be overridden on cmdline.
3131
BOLTVERSION := $(DEFAULT_BOLTVERSION)
3232

ccan/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CCAN imported from http://ccodearchive.net.
22

3-
CCAN version: init-2590-gaf04734d
3+
CCAN version: init-2593-gca094039

ccan/ccan/fdpass/fdpass.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <sys/socket.h>
44
#include <errno.h>
55
#include <string.h>
6+
#include <sys/types.h>
67

78
bool fdpass_send(int sockout, int fd)
89
{

ccan/ccan/time/test/run-monotonic.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ int main(void)
77
struct timemono t1, t2;
88
struct timerel t3;
99

10-
plan_tests(5);
10+
plan_tests(10);
1111

1212
/* Test time_mono */
1313
t1 = time_mono();
1414
t2 = time_mono();
1515

16-
ok1(!time_less_(t2.ts, t1.ts));
16+
ok1(!timemono_before(t2, t1));
1717

1818
t3.ts.tv_sec = 1;
1919
t3.ts.tv_nsec = 0;
@@ -24,5 +24,11 @@ int main(void)
2424
ok1(timemono_add(t1, t3).ts.tv_sec == t1.ts.tv_sec + 1);
2525
ok1(timemono_add(t2, t3).ts.tv_nsec == t2.ts.tv_nsec);
2626

27+
ok1(timemono_sub(timemono_add(t1, t3), t3).ts.tv_sec == t1.ts.tv_sec);
28+
ok1(timemono_sub(timemono_add(t1, t3), t3).ts.tv_nsec == t1.ts.tv_nsec);
29+
30+
ok1(timemono_after(timemono_add(t1, t3), t1));
31+
ok1(!timemono_after(t1, timemono_add(t1, t3)));
32+
ok1(!timemono_after(t1, t1));
2733
return exit_status();
2834
}

ccan/ccan/time/time.h

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,23 @@ static inline bool time_greater(struct timerel a, struct timerel b)
193193
return time_greater_(a.ts, b.ts);
194194
}
195195

196+
/**
197+
* timemono_after - is a after b?
198+
* @a: one monotonic time.
199+
* @b: another monotonic time.
200+
*
201+
* Example:
202+
* static bool timed_out(const struct timemono *start)
203+
* {
204+
* #define TIMEOUT time_from_msec(1000)
205+
* return timemono_after(time_mono(), timemono_add(*start, TIMEOUT));
206+
* }
207+
*/
208+
static inline bool timemono_after(struct timemono a, struct timemono b)
209+
{
210+
return time_greater_(a.ts, b.ts);
211+
}
212+
196213
static inline bool time_less_(struct timespec a, struct timespec b)
197214
{
198215
if (TIME_CHECK(a).tv_sec < TIME_CHECK(b).tv_sec)
@@ -220,6 +237,23 @@ static inline bool time_before(struct timeabs a, struct timeabs b)
220237
return time_less_(a.ts, b.ts);
221238
}
222239

240+
/**
241+
* timemono_before - is a before b?
242+
* @a: one monotonic time.
243+
* @b: another monotonic time.
244+
*
245+
* Example:
246+
* static bool still_valid(const struct timemono *start)
247+
* {
248+
* #define TIMEOUT time_from_msec(1000)
249+
* return timemono_before(time_mono(), timemono_add(*start, TIMEOUT));
250+
* }
251+
*/
252+
static inline bool timemono_before(struct timemono a, struct timemono b)
253+
{
254+
return time_less_(a.ts, b.ts);
255+
}
256+
223257
/**
224258
* time_less - is a before b?
225259
* @a: one relative time.
@@ -404,6 +438,29 @@ static inline struct timeabs timeabs_sub(struct timeabs abs, struct timerel rel)
404438
return t;
405439
}
406440

441+
/**
442+
* timemono_sub - subtract a relative time from a monotonic time
443+
* @mono: the monotonic time.
444+
* @rel: the relative time.
445+
*
446+
* This returns a well formed struct timemono of @mono - @rel.
447+
*
448+
* Example:
449+
* // We do one every second.
450+
* static struct timemono previous_time(void)
451+
* {
452+
* return timemono_sub(time_mono(), time_from_msec(1000));
453+
* }
454+
*/
455+
static inline struct timemono timemono_sub(struct timemono mono, struct timerel rel)
456+
{
457+
struct timemono t;
458+
459+
t.ts = time_sub_(mono.ts, rel.ts);
460+
return t;
461+
}
462+
463+
407464
static inline struct timespec time_add_(struct timespec a, struct timespec b)
408465
{
409466
struct timespec sum;
@@ -488,6 +545,8 @@ static inline struct timerel timerel_add(struct timerel a, struct timerel b)
488545
* @div: number to divide it by.
489546
*
490547
* Example:
548+
* #include <sys/wait.h>
549+
*
491550
* // How long does it take to do a fork?
492551
* static struct timerel forking_time(void)
493552
* {

0 commit comments

Comments
 (0)