Skip to content

Commit e1e0fb6

Browse files
committed
Merge branch 'master' of github.com:ElementsProject/lightning into ddustin/splice
# Conflicts: # common/interactivetx.c # common/interactivetx.h # lightningd/peer_control.c # wallet/db.c
2 parents d94f535 + 9ed138f commit e1e0fb6

File tree

391 files changed

+13682
-7069
lines changed

Some content is hidden

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

391 files changed

+13682
-7069
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ statements_gettextgen.po linguist-generated=true
1717
cln-grpc/proto/node.proto -text -diff linguist-generated=true
1818
cln-grpc/src/convert.rs -text -diff linguist-generated=true
1919
cln-rpc/src/model.rs -text -diff linguist-generated=true
20-
contrib/pyln-testing/pyln/testing/node_pb2.py -text -diff linguist-generated=true
20+
contrib/pyln-testing/pyln/testing/node_pb2.py linguist-generated=true

.github/scripts/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ then
5454
export STRIP="$TARGET_HOST"-strip
5555
export CONFIGURATION_WRAPPER=qemu-"${TARGET_HOST%%-*}"-static
5656

57-
wget -q https://zlib.net/zlib-1.2.12.tar.gz
58-
tar xf zlib-1.2.12.tar.gz
59-
cd zlib-1.2.12 || exit 1
57+
wget -q https://zlib.net/fossils/zlib-1.2.13.tar.gz
58+
tar xf zlib-1.2.13.tar.gz
59+
cd zlib-1.2.13 || exit 1
6060
./configure --prefix="$QEMU_LD_PREFIX"
6161
make
6262
sudo make install
6363
cd .. || exit 1
64-
rm zlib-1.2.12.tar.gz && rm -rf zlib-1.2.12
64+
rm zlib-1.2.13.tar.gz && rm -rf zlib-1.2.13
6565

6666
wget -q https://www.sqlite.org/2018/sqlite-src-3260000.zip
6767
unzip -q sqlite-src-3260000.zip

.github/scripts/setup.sh

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,17 @@ sudo chmod 0440 /etc/sudoers.d/tester
6969
elements-$ELEMENTS_VERSION
7070
)
7171

72-
if [ "$RUST" == "1" ]; then
73-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
74-
-y --default-toolchain ${RUST_VERSION}
75-
fi
72+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
73+
-y --default-toolchain ${RUST_VERSION}
74+
75+
# We also need a relatively recent protobuf-compiler, at least 3.12.0,
76+
# in order to support the experimental `optional` flag.
77+
PROTOC_VERSION=3.15.8
78+
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
79+
curl -LO $PB_REL/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip
80+
sudo unzip protoc-3.15.8-linux-x86_64.zip -d /usr/local/
81+
sudo chmod a+x /usr/local/bin/protoc
82+
export PROTOC=/usr/local/bin/protoc
83+
export PATH=$PATH:/usr/local/bin
84+
env
85+
ls -lha /usr/local/bin

.github/workflows/ci.yaml

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- "master"
77
pull_request:
8+
89
jobs:
910
smoke-test:
1011
name: Smoke Test ${{ matrix.cfg }}
@@ -61,6 +62,8 @@ jobs:
6162
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
6263
TEST_GROUP: ${{ matrix.TEST_GROUP }}
6364
run: |
65+
echo $PROTOC
66+
which protoc
6467
bash -x .github/scripts/build.sh
6568
6669
- name: Upload Unit Test Results
@@ -97,44 +100,44 @@ jobs:
97100
./configure
98101
make check-doc
99102
100-
proto-test:
101-
name: Protocol Test Config
102-
runs-on: ubuntu-22.04
103-
timeout-minutes: 300
104-
needs: [smoke-test]
105-
strategy:
106-
fail-fast: true
107-
matrix:
108-
include:
109-
- {compiler: clang, db: sqlite3}
110-
- {compiler: gcc, db: postgres}
111-
steps:
112-
- name: Checkout
113-
uses: actions/[email protected]
114-
- name: Build and run
115-
run: |
116-
docker build -f contrib/docker/Dockerfile.ubuntu -t cln-ci-ubuntu .
117-
docker run -e ARCH=${{ matrix.arch }} \
118-
-e COMPILER=${{ matrix.compiler }} \
119-
-e DB=${{ matrix.db }} \
120-
-e NETWORK=${{ matrix.network }} \
121-
-e TARGET_HOST=${{ matrix.TARGET_HOST }} \
122-
-e VALGRIND=${{ matrix.valgrind }} \
123-
-e DEVELOPER=1 \
124-
-e EXPERIMENTAL_FEATURES=1 \
125-
-e COMPAT=0 \
126-
-e PYTEST_PAR=2 \
127-
-e PYTEST_OPTS="--timeout=300" \
128-
-e TEST_CMD="make check-protos" \
129-
-e TEST_GROUP=1 \
130-
-e TEST_GROUP_COUNT=1 \
131-
cln-ci-ubuntu
132-
- name: Upload Unit Test Results
133-
if: always()
134-
uses: actions/upload-artifact@v2
135-
with:
136-
name: Junit Report ${{ github.run_number }}.{{ matrix.cfg }}
137-
path: report.*
103+
# proto-test:
104+
# name: Protocol Test Config
105+
# runs-on: ubuntu-22.04
106+
# timeout-minutes: 300
107+
# needs: [smoke-test]
108+
# strategy:
109+
# fail-fast: true
110+
# matrix:
111+
# include:
112+
# - {compiler: clang, db: sqlite3}
113+
# - {compiler: gcc, db: postgres}
114+
# steps:
115+
# - name: Checkout
116+
# uses: actions/[email protected]
117+
# - name: Build and run
118+
# run: |
119+
# docker build -f contrib/docker/Dockerfile.ubuntu -t cln-ci-ubuntu .
120+
# docker run -e ARCH=${{ matrix.arch }} \
121+
# -e COMPILER=${{ matrix.compiler }} \
122+
# -e DB=${{ matrix.db }} \
123+
# -e NETWORK=${{ matrix.network }} \
124+
# -e TARGET_HOST=${{ matrix.TARGET_HOST }} \
125+
# -e VALGRIND=${{ matrix.valgrind }} \
126+
# -e DEVELOPER=1 \
127+
# -e EXPERIMENTAL_FEATURES=1 \
128+
# -e COMPAT=0 \
129+
# -e PYTEST_PAR=2 \
130+
# -e PYTEST_OPTS="--timeout=300" \
131+
# -e TEST_CMD="make check-protos" \
132+
# -e TEST_GROUP=1 \
133+
# -e TEST_GROUP_COUNT=1 \
134+
# cln-ci-ubuntu
135+
# - name: Upload Unit Test Results
136+
# if: always()
137+
# uses: actions/upload-artifact@v2
138+
# with:
139+
# name: Junit Report ${{ github.run_number }}.{{ matrix.cfg }}
140+
# path: report.*
138141

139142
normal-test:
140143
name: Normal Test Config ${{ matrix.cfg }}

.github/workflows/macos.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
export PATH="/usr/local/opt:/Users/runner/.local/bin:/Users/runner/Library/Python/3.10/bin:$PATH"
23+
2324
export BITCOIN_VERSION=0.20.1
24-
brew install wget python autoconf automake libtool python3 gmp gnu-sed gettext libsodium
25+
brew install wget autoconf automake libtool [email protected] gmp gnu-sed gettext libsodium
2526
2627
(
2728
cd /tmp/
@@ -30,12 +31,11 @@ jobs:
3031
sudo mv bitcoin-$BITCOIN_VERSION/bin/* /usr/local/bin
3132
)
3233
33-
pip3 install --user poetry
34-
poetry config virtualenvs.create false --local
35-
poetry install
34+
python3.10 -m pip install -U --user poetry wheel pip
35+
python3.10 -m poetry install
36+
python3.10 -m pip install -U --user mako
3637
3738
ln -s /usr/local/Cellar/gettext/0.20.1/bin/xgettext /usr/local/opt
38-
export PATH="/usr/local/opt:$PATH"
3939
4040
- name: Build
4141
env:
@@ -53,7 +53,7 @@ jobs:
5353
TEST_GROUP_COUNT: ${{ matrix.TEST_GROUP_COUNT }}
5454
TEST_GROUP: ${{ matrix.TEST_GROUP }}
5555
run: |
56-
export PATH="/usr/local/opt:/Users/runner/.local/bin:/Users/runner/Library/Python/3.10/bin:$PATH"
56+
export PATH="/usr/local/opt:/Users/runner/.local/bin:/Users/runner/Library/Python/3.10/bin:/usr/local/opt:$PATH"
5757
export LDFLAGS="-L/usr/local/opt/sqlite/lib"
5858
export CPPFLAGS="-I/usr/local/opt/sqlite/include"
5959
@@ -64,5 +64,5 @@ jobs:
6464
slow_test: marks tests as slow (deselect with '-m "not slow_test"')
6565
EOF
6666
67-
./configure
68-
make
67+
python3.10 -m poetry run ./configure
68+
python3.10 -m poetry run make

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ tests/plugins/test_selfdisable_after_getmanifest
5858
# Ignore generated files
5959
devtools/features
6060
doc/lightning*.[1578]
61+
doc/reckless*.[1578]
6162
*_sqlgen.[ch]
6263
*_wiregen.[ch]
6364
*_printgen.[ch]
@@ -70,6 +71,7 @@ tests/primitives_pb2_grpc.py
7071
# Ignore unrelated stuff
7172
.DS_Store
7273
.gdb_history
74+
.python-version
7375

7476
# Rust targets
7577
target

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
url = https://github.com/valyala/gheap
1717
[submodule "external/lnprototest"]
1818
path = external/lnprototest
19-
url = https://github.com/niftynei/lnprototest.git
19+
url = https://github.com/rustyrussell/lnprototest.git
2020
branch = nifty/ripemd160-fallback
2121
[submodule "external/lowdown"]
2222
path = external/lowdown

.msggen.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
},
7777
"ListfundsOutputsStatus": {
7878
"confirmed": 1,
79+
"immature": 3,
7980
"spent": 2,
8081
"unconfirmed": 0
8182
},
@@ -271,6 +272,7 @@
271272
"CreateInvoice.bolt12": 3,
272273
"CreateInvoice.description": 7,
273274
"CreateInvoice.expires_at": 8,
275+
"CreateInvoice.invreq_payer_note": 15,
274276
"CreateInvoice.label": 1,
275277
"CreateInvoice.local_offer_id": 13,
276278
"CreateInvoice.paid_at": 11,
@@ -335,6 +337,7 @@
335337
"DelInvoice.bolt12": 3,
336338
"DelInvoice.description": 5,
337339
"DelInvoice.expires_at": 8,
340+
"DelInvoice.invreq_payer_note": 11,
338341
"DelInvoice.label": 1,
339342
"DelInvoice.local_offer_id": 9,
340343
"DelInvoice.payer_note": 10,
@@ -629,6 +632,7 @@
629632
"ListInvoices.invoices[].bolt12": 8,
630633
"ListInvoices.invoices[].description": 2,
631634
"ListInvoices.invoices[].expires_at": 5,
635+
"ListInvoices.invoices[].invreq_payer_note": 15,
632636
"ListInvoices.invoices[].label": 1,
633637
"ListInvoices.invoices[].local_offer_id": 9,
634638
"ListInvoices.invoices[].paid_at": 13,
@@ -870,6 +874,7 @@
870874
"Pay.exclude": 10,
871875
"Pay.exemptfee": 7,
872876
"Pay.label": 3,
877+
"Pay.localinvreqid": 14,
873878
"Pay.localofferid": 9,
874879
"Pay.maxdelay": 6,
875880
"Pay.maxfee": 11,
@@ -909,6 +914,7 @@
909914
"SendOnion.first_hop": 2,
910915
"SendOnion.groupid": 11,
911916
"SendOnion.label": 4,
917+
"SendOnion.localinvreqid": 13,
912918
"SendOnion.localofferid": 10,
913919
"SendOnion.msatoshi": 8,
914920
"SendOnion.onion": 1,
@@ -936,6 +942,7 @@
936942
"SendPay.bolt11": 5,
937943
"SendPay.groupid": 9,
938944
"SendPay.label": 3,
945+
"SendPay.localinvreqid": 11,
939946
"SendPay.localofferid": 8,
940947
"SendPay.msatoshi": 4,
941948
"SendPay.partid": 7,

0 commit comments

Comments
 (0)