Skip to content

Commit 912211f

Browse files
authored
Merge branch 'master' into ddustin/splice_script
2 parents f6b0b51 + 48f50a2 commit 912211f

File tree

86 files changed

+4566
-1236
lines changed

Some content is hidden

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

86 files changed

+4566
-1236
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
> [!IMPORTANT]
2-
> Open for merging new PRs until the next PR freeze date is confirmed!
2+
> 24.11 FREEZE NOVEMBER 7TH: Non-bugfix PRs not ready by this date will wait for 25.02.
33
44
## Checklist
55
Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:
66

77
- [ ] The changelog has been updated in the relevant commit(s) according to the [guidelines](https://docs.corelightning.org/docs/coding-style-guidelines#changelog-entries-in-commit-messages).
88
- [ ] Tests have been added or modified to reflect the changes.
99
- [ ] Documentation has been reviewed and updated as needed.
10-
- [ ] Related issues have been listed and linked, including any that this PR closes.
10+
- [ ] Related issues have been listed and linked, including any that this PR closes.

.github/workflows/ci.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,29 @@ jobs:
4343
git rebase origin/${{ github.base_ref }}
4444
4545
- name: Check changelog
46+
env:
47+
PR_DESCRIPTION: "${{ github.event.pull_request.body || '' }}"
48+
EVENT_NAME: "${{ github.event_name }}"
49+
BASE_REF: "${{ github.base_ref || 'master' }}"
4650
run: |
47-
base_ref="${{ github.base_ref }}"
48-
if [ -z "$base_ref" ]; then
49-
base_ref="master"
50-
fi
51-
if [[ -z "$(git log origin/$base_ref..HEAD --oneline --grep='Changelog-')" && "$(git rev-parse --abbrev-ref HEAD)" != "$base_ref" ]]; then
52-
echo "::error::'Changelog' entry is missing in all commits" && exit 1
51+
echo "Event Name: $EVENT_NAME"
52+
echo "Base Ref: $BASE_REF"
53+
echo "PR DESCRIPTION: $PR_DESCRIPTION"
54+
if [ "$EVENT_NAME" = "pull_request" ]; then
55+
if [[ "$PR_DESCRIPTION" != *"Changelog-None"* && \
56+
-z "$(git log origin/$BASE_REF..HEAD --oneline --grep='Changelog-')" && \
57+
"$(git rev-parse --abbrev-ref HEAD)" != "$BASE_REF" ]]; then
58+
echo "::error::'Changelog' entry is missing in all commits, and 'Changelog-None' not specified in the PR description"
59+
exit 1
60+
else
61+
if [[ "$PR_DESCRIPTION" == *"Changelog-None"* ]]; then
62+
echo "Changelog found in PR description"
63+
else
64+
echo "Changelog found in Commit \"$(git log origin/$BASE_REF..HEAD --oneline --grep='Changelog-')\""
65+
fi
66+
fi
67+
else
68+
echo "Not a PR event."
5369
fi
5470
5571
- name: Set up Python 3.8

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ update-ccan:
694694

695695
# Now ALL_PROGRAMS is fully populated, we can expand it.
696696
all-programs: $(ALL_PROGRAMS)
697+
all-fuzz-programs: $(ALL_FUZZ_TARGETS)
697698
all-test-programs: $(ALL_TEST_PROGRAMS) $(ALL_FUZZ_TARGETS)
698699
default-targets: $(DEFAULT_TARGETS)
699700

@@ -840,6 +841,7 @@ install: install-program install-data
840841
TESTBINS = \
841842
$(CLN_PLUGIN_EXAMPLES) \
842843
tests/plugins/test_libplugin \
844+
tests/plugins/channeld_fakenet \
843845
tests/plugins/test_selfdisable_after_getmanifest \
844846
tools/hsmtool
845847

channeld/channeld.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5930,6 +5930,7 @@ static void req_in(struct peer *peer, const u8 *msg)
59305930
case WIRE_CHANNELD_SPLICE_STATE_ERROR:
59315931
case WIRE_CHANNELD_LOCAL_ANCHOR_INFO:
59325932
case WIRE_CHANNELD_REESTABLISHED:
5933+
case WIRE_CHANNELD_DEV_PEER_SHACHAIN:
59335934
break;
59345935
}
59355936
master_badmsg(-1, msg);

channeld/channeld_wire.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,7 @@ msgdata,channeld_upgraded,new_type,channel_type,
359359
# Tell peer about our latest and greatest blockheight.
360360
msgtype,channeld_blockheight,1012
361361
msgdata,channeld_blockheight,blockheight,u32,
362+
363+
# Tell channeld about peer's shachain seed.
364+
msgtype,channeld_dev_peer_shachain,1013
365+
msgdata,channeld_dev_peer_shachain,seed,sha256,

contrib/giantnode.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@
4141

4242
args = parser.parse_args()
4343

44-
nodes = (LightningRpc('/tmp/l1-regtest/regtest/lightning-rpc'),
45-
LightningRpc('/tmp/l2-regtest/regtest/lightning-rpc'),
46-
LightningRpc('/tmp/l3-regtest/regtest/lightning-rpc'))
47-
48-
nodes = (LightningRpc('/tmp/l1-regtest/regtest/lightning-rpc'),
49-
LightningRpc('/tmp/l2-regtest/regtest/lightning-rpc'),
50-
LightningRpc('/tmp/l3-regtest/regtest/lightning-rpc'))
44+
nodes = (LightningRpc('/tmp/l1/regtest/lightning-rpc'),
45+
LightningRpc('/tmp/l2/regtest/lightning-rpc'),
46+
LightningRpc('/tmp/l3/regtest/lightning-rpc'))
5147

5248
# Convenient aliases
5349
l1 = nodes[0]
@@ -59,9 +55,9 @@
5955
print("""
6056
Bookkeeper is running on l1, will slow things down! Run this:
6157
62-
echo 'disable-plugin=bookkeeper' >> /tmp/l1-regtest/regtest/config
63-
echo 'disable-plugin=bookkeeper' >> /tmp/l2-regtest/regtest/config
64-
echo 'disable-plugin=bookkeeper' >> /tmp/l3-regtest/regtest/config
58+
echo 'disable-plugin=bookkeeper' >> /tmp/l1/regtest/config
59+
echo 'disable-plugin=bookkeeper' >> /tmp/l2/regtest/config
60+
echo 'disable-plugin=bookkeeper' >> /tmp/l3/regtest/config
6561
stop_ln
6662
start_ln 3
6763
""")

0 commit comments

Comments
 (0)