Skip to content

Commit 4341419

Browse files
authored
Merge branch 'ElementsProject:master' into add-testnet4-support
2 parents 4335275 + 219623c commit 4341419

Some content is hidden

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

44 files changed

+592
-263
lines changed

.github/workflows/bsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
testfreebsd:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
name: Build and test on FreeBSD
1313
timeout-minutes: 120
1414
strategy:

.github/workflows/ci.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
run: |
7878
bash -x .github/scripts/setup.sh
7979
pip install -U pip wheel poetry
80+
poetry self add poetry-plugin-export
8081
# Export and then use pip to install into the current env
8182
poetry export -o /tmp/requirements.txt --without-hashes --with dev
8283
pip install -r /tmp/requirements.txt
@@ -145,6 +146,7 @@ jobs:
145146
run: |
146147
set -e
147148
pip3 install --user pip wheel poetry
149+
poetry self add poetry-plugin-export
148150
poetry export -o requirements.txt --with dev --without-hashes
149151
python3 -m pip install -r requirements.txt
150152
./configure --enable-debugbuild CC="$COMPILER" ${{ matrix.COPTFLAGS_VAR }}
@@ -193,6 +195,7 @@ jobs:
193195
sudo apt-get update -qq
194196
sudo apt-get install -y -qq lowdown
195197
pip install -U pip wheel poetry
198+
poetry self add poetry-plugin-export
196199
# Export and then use pip to install into the current env
197200
poetry export -o /tmp/requirements.txt --without-hashes --with dev
198201
pip install -r /tmp/requirements.txt
@@ -227,6 +230,7 @@ jobs:
227230
run: |
228231
bash -x .github/scripts/setup.sh
229232
pip install -U pip wheel poetry
233+
poetry self add poetry-plugin-export
230234
# Export and then use pip to install into the current env
231235
poetry export -o /tmp/requirements.txt --without-hashes --with dev
232236
pip install -r /tmp/requirements.txt
@@ -242,7 +246,7 @@ jobs:
242246
timeout-minutes: 120
243247
env:
244248
RUST_PROFILE: release # Has to match the one in the compile step
245-
PYTEST_OPTS: --timeout=1200 --force-flaky
249+
PYTEST_OPTS: --timeout=1200
246250
needs:
247251
- compile
248252
strategy:
@@ -349,7 +353,7 @@ jobs:
349353
env:
350354
RUST_PROFILE: release # Has to match the one in the compile step
351355
CFG: compile-gcc
352-
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --force-flaky
356+
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800
353357
needs:
354358
- compile
355359
strategy:
@@ -418,7 +422,7 @@ jobs:
418422
RUST_PROFILE: release
419423
SLOW_MACHINE: 1
420424
TEST_DEBUG: 1
421-
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --force-flaky
425+
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800
422426
needs:
423427
- compile
424428
strategy:
@@ -482,7 +486,7 @@ jobs:
482486
timeout-minutes: 120
483487
env:
484488
RUST_PROFILE: release # Has to match the one in the compile step
485-
PYTEST_OPTS: --timeout=1200 --force-flaky
489+
PYTEST_OPTS: --timeout=1200
486490
needs:
487491
- compile
488492
strategy:

.github/workflows/crate-io.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
release_rust:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: dtolnay/rust-toolchain@stable

.github/workflows/docker-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ on:
2929

3030
jobs:
3131
build:
32-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-22.04
3333

3434
steps:
3535
- name: Checkout repository

.github/workflows/macos.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
smoke-test:
77
name: Smoke Test macOS
8-
runs-on: macos-latest
8+
runs-on: macos-14
99
timeout-minutes: 120
1010
strategy:
1111
fail-fast: true
@@ -27,26 +27,20 @@ jobs:
2727
2828
- name: Install dependencies
2929
run: |
30-
export PATH="/usr/local/opt:/Users/runner/.local/bin:/Users/runner/Library/Python/3.10/bin:$PATH"
30+
export PATH="/usr/local/opt:/Users/runner/.local/bin:/opt/homebrew/bin/python3.10/bin:$PATH"
3131
32-
brew install wget autoconf automake libtool [email protected] gnu-sed gettext libsodium protobuf
33-
34-
python3.10 -m pip install -U --user poetry wheel pip
32+
brew install gnu-sed [email protected] autoconf automake libtool protobuf
33+
python3.10 -m pip install -U --user poetry==1.8.0 wheel pip mako
3534
python3.10 -m poetry install
36-
python3.10 -m pip install -U --user mako
37-
38-
sudo ln -s /usr/local/Cellar/gettext/0.20.1/bin/xgettext /usr/local/opt
3935
40-
- name: Build and install
36+
- name: Build and install CLN
4137
run: |
4238
export CPATH=/opt/homebrew/include
4339
export LIBRARY_PATH=/opt/homebrew/lib
4440
4541
python3.10 -m poetry run ./configure --disable-valgrind --disable-compat
4642
python3.10 -m poetry run make
4743
48-
# sudo PATH="/usr/local/opt:$PATH" LIBRARY_PATH=/opt/homebrew/lib CPATH=/opt/homebrew/include make install
49-
5044
- name: Start bitcoind in regtest mode
5145
run: |
5246
bitcoind -regtest -daemon
@@ -58,11 +52,11 @@ jobs:
5852
bitcoin-cli -regtest generatetoaddress 1 $(bitcoin-cli -regtest getnewaddress)
5953
sleep 2
6054
61-
- name: Start lightningd in regtest mode
55+
- name: Start CLN in regtest mode
6256
run: |
6357
lightningd/lightningd --network=regtest --log-file=/tmp/l1.log --daemon
6458
sleep 5
6559
66-
- name: Verify lightningd is running
60+
- name: Verify CLN is running
6761
run: |
6862
cli/lightning-cli --regtest getinfo

.github/workflows/rdme-docs-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
rdme-docs-sync:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Check out repo 📚
1616
uses: actions/checkout@v4

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
rdme-rpc-sync:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-22.04
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4

.msggen.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@
18091809
"InjectpaymentonionRequest": {
18101810
"InjectPaymentOnion.amount_msat": 3,
18111811
"InjectPaymentOnion.cltv_expiry": 4,
1812+
"InjectPaymentOnion.destination_msat": 10,
18121813
"InjectPaymentOnion.groupid": 6,
18131814
"InjectPaymentOnion.invstring": 8,
18141815
"InjectPaymentOnion.label": 7,
@@ -1820,7 +1821,8 @@
18201821
"InjectpaymentonionResponse": {
18211822
"InjectPaymentOnion.completed_at": 2,
18221823
"InjectPaymentOnion.created_at": 1,
1823-
"InjectPaymentOnion.created_index": 3
1824+
"InjectPaymentOnion.created_index": 3,
1825+
"InjectPaymentOnion.payment_preimage": 4
18241826
},
18251827
"InvoiceRequest": {
18261828
"Invoice.amount_msat": 10,
@@ -7547,6 +7549,10 @@
75477549
"added": "v24.11",
75487550
"deprecated": null
75497551
},
7552+
"InjectPaymentOnion.destination_msat": {
7553+
"added": "v24.11.1",
7554+
"deprecated": null
7555+
},
75507556
"InjectPaymentOnion.groupid": {
75517557
"added": "v24.11",
75527558
"deprecated": null
@@ -7575,6 +7581,10 @@
75757581
"added": "v24.11",
75767582
"deprecated": null
75777583
},
7584+
"InjectPaymentOnion.payment_preimage": {
7585+
"added": "v24.11",
7586+
"deprecated": null
7587+
},
75787588
"Invoice": {
75797589
"added": "pre-v0.10.1",
75807590
"deprecated": null

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,35 @@ All notable changes to this project will be documented in this file.
33

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

6+
## [24.11.1] - 2024-12-16: "The lightning-dev Mailing List II"
7+
8+
Minor fixes, particularly for xpay users.
9+
10+
### Changed
11+
12+
- JSON-RPC: `xpay` now gives the same JSON success return as documented by `pay` when `xpay-handle-pay` is set. ([#7938], [#7952])
13+
- JSON-RPC: With `xpay-handle-pay` set, xpay will now be used even if `pay` uses maxfeeprecent or exemptfee parameters (e.g. Zeus) ([#7942])
14+
- JSON-RPC: `xpay` now populates more fields, so `listsendpays` and `listpays` show `destination` and `amount_msat` fields for xpay payments. ([#7941])
15+
- Logging: we no longer suppress DEBUG messages from subdaemons. ([#7935])
16+
17+
### Fixed
18+
19+
- JSON-RPC: xpay now works through unannounced channels. ([#7937])
20+
- lightning-cli: fix "malformed response" bug ([#7924])
21+
- Plugins: `xpay` no longer logs "Got command" at info level. ([#7933])
22+
- Build: Alpine/OpenBSD compilation fix ([#7940])
23+
24+
[#7942]: https://github.com/ElementsProject/lightning/pull/7942
25+
[#7933]: https://github.com/ElementsProject/lightning/pull/7933
26+
[#7941]: https://github.com/ElementsProject/lightning/pull/7941
27+
[#7937]: https://github.com/ElementsProject/lightning/pull/7937
28+
[#7924]: https://github.com/ElementsProject/lightning/pull/7924
29+
[#7935]: https://github.com/ElementsProject/lightning/pull/7935
30+
[#7938]: https://github.com/ElementsProject/lightning/pull/7938
31+
[#7940]: https://github.com/ElementsProject/lightning/pull/7940
32+
[#7952]: https://github.com/ElementsProject/lightning/pull/7952
33+
[24.11.1]: https://github.com/ElementsProject/lightning/releases/tag/v24.11.1
34+
635
## [24.11] - 2024-12-09: "The lightning-dev Mailing List"
736

837
This release named by Dusty Daemon.

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ ENV PYTHON_VERSION=3
9292
RUN curl -sSL https://install.python-poetry.org | python3 -
9393
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
9494
RUN pip3 install --upgrade pip setuptools wheel
95+
RUN poetry self add poetry-plugin-export
9596

9697
RUN wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz -O zlib.tar.gz && \
9798
wget -q https://www.sqlite.org/2019/sqlite-src-3290000.zip -O sqlite.zip
@@ -198,6 +199,7 @@ RUN ( ! [ "${target_host}" = "arm-linux-gnueabihf" ] ) || \
198199
# Ensure that the desired grpcio-tools & protobuf versions are installed
199200
# https://github.com/ElementsProject/lightning/pull/7376#issuecomment-2161102381
200201
RUN poetry lock --no-update && poetry install
202+
RUN poetry self add poetry-plugin-export
201203

202204
# Ensure that git differences are removed before making bineries, to avoid `-modded` suffix
203205
# poetry.lock changed due to pyln-client, pyln-proto and pyln-testing version updates

0 commit comments

Comments
 (0)