Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gossip rework part 2 #6904

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8e4868e
lnprototest: remove.
rustyrussell Jan 29, 2024
fcba09a
lightningd: use explicit accessor to get channel_update for errors.
rustyrussell Jan 31, 2024
4dca617
hsmd: add command to allow lightningd to sign channel announcement.
rustyrussell Jan 31, 2024
9b6e768
gossipd: strip private updates from gossip_store on startup.
rustyrussell Jan 31, 2024
422ea4c
gossipd: get told about new block before splicing code tries to feed …
rustyrussell Jan 31, 2024
fc9ec4b
dualopend: tell lightningd what remote alias the peer sent.
rustyrussell Jan 31, 2024
55d407d
lightningd: set channel's local alias at init.
rustyrussell Jan 31, 2024
ab1e783
connectd: separate routine to inject message without closing connection.
rustyrussell Jan 31, 2024
0f4c141
channeld: tell lightningd scid from `announcement_signatures` message.
rustyrussell Jan 31, 2024
43b731e
lightningd: tweak db remote channel_announcement sigs API.
rustyrussell Jan 31, 2024
046139f
lightningd: add gossip_generation.c
rustyrussell Jan 31, 2024
6e05632
lightningd/channel_gossip: new file for handing and generating gossip…
rustyrussell Jan 31, 2024
819def6
lightningd: ignore gossip messages from channeld, switch to our own.
rustyrussell Jan 31, 2024
714bd1c
channeld: remove channel_update message creation.
rustyrussell Jan 31, 2024
4db58a5
dualopend: remove channel_update message creation.
rustyrussell Jan 31, 2024
004d032
gossipd: no longer take private channel updates from lightningd
rustyrussell Jan 31, 2024
47bdbda
gossipd: don't put private channel info into store at all.
rustyrussell Jan 31, 2024
9b3c4c5
common: remote private_channel_announcement.[ch].
rustyrussell Jan 31, 2024
4a3ae15
gossipd: remove channel update/annoounce creation and local update ha…
rustyrussell Jan 31, 2024
b9cbf96
lightningd: check channel_announcement signatures we get from peer.
rustyrussell Jan 31, 2024
6d87999
lightningd: add routines to generate node_announcement.
rustyrussell Jan 31, 2024
be6032e
gossipd: tell lightningd its node_announcement on startup, if any.
rustyrussell Jan 31, 2024
039de2b
lightningd: don't create node_announcement until gossipd is finished.
rustyrussell Jan 31, 2024
33a1ba3
lightningd: refine heuristics for remote address selection.
rustyrussell Jan 31, 2024
c7612a5
connectd: channel_gossip when we've tried to connect to all peers.
rustyrussell Jan 31, 2024
000fd7d
lightningd: move node_announcement unit test from gossipd/
rustyrussell Jan 31, 2024
bbc2ecd
lightningd: turn on node_announcement generation.
rustyrussell Jan 31, 2024
609d885
gossipd: remove node_announcement generation.
rustyrussell Jan 31, 2024
e715789
channeld: notify lightningd once we've exchanged reestablish messages.
rustyrussell Jan 31, 2024
53ec20f
lightningd: expose `reestablished` field.
rustyrussell Jan 31, 2024
42048ef
lightningd: add last_stable_connection field to db, channel.
rustyrussell Jan 31, 2024
a08c16d
lightningd: set last_stable_connection 1 minute after channel reestab…
rustyrussell Jan 31, 2024
9b31f96
lightningd: expose last_stable_connection in RPC.
rustyrussell Jan 31, 2024
41b7da5
gossipd: make seeker uintmap visible to memleak code.
rustyrussell Jan 31, 2024
f9ff456
lightingd: corrections from Alex Myers's review.
rustyrussell Jan 31, 2024
a0d18ba
pytest: fix flake in test_wumbo_channels
rustyrussell Jan 31, 2024
fffb765
pytest: don't trigger bad gossip message in test_routing_gossip_recon…
rustyrussell Jan 31, 2024
c5e4307
lightningd: don't generate node_announcements with identical timestamps.
rustyrussell Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/workflows/prototest.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
[submodule "external/gheap"]
path = external/gheap
url = https://github.com/valyala/gheap
[submodule "external/lnprototest"]
path = external/lnprototest
url = https://github.com/rustyrussell/lnprototest.git
[submodule "external/lowdown"]
path = external/lowdown
url = https://github.com/kristapsdz/lowdown.git
Expand Down
10 changes: 10 additions & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@
"ListClosedChannels.closedchannels[].funding_txid": 12,
"ListClosedChannels.closedchannels[].last_commitment_fee_msat": 23,
"ListClosedChannels.closedchannels[].last_commitment_txid": 22,
"ListClosedChannels.closedchannels[].last_stable_connection": 25,
"ListClosedChannels.closedchannels[].leased": 14,
"ListClosedChannels.closedchannels[].max_to_us_msat": 21,
"ListClosedChannels.closedchannels[].min_to_us_msat": 20,
Expand Down Expand Up @@ -1147,6 +1148,7 @@
"ListPeerChannels.channels[].inflight[]": 16,
"ListPeerChannels.channels[].initial_feerate": 12,
"ListPeerChannels.channels[].last_feerate": 13,
"ListPeerChannels.channels[].last_stable_connection": 56,
"ListPeerChannels.channels[].max_accepted_htlcs": 40,
"ListPeerChannels.channels[].max_to_us_msat": 25,
"ListPeerChannels.channels[].max_total_htlc_in_msat": 30,
Expand Down Expand Up @@ -3676,6 +3678,10 @@
"added": "pre-v0.10.1",
"deprecated": false
},
"ListClosedChannels.closedchannels[].last_stable_connection": {
"added": "v24.02",
"deprecated": false
},
"ListClosedChannels.closedchannels[].leased": {
"added": "pre-v0.10.1",
"deprecated": false
Expand Down Expand Up @@ -4408,6 +4414,10 @@
"added": "v23.02",
"deprecated": false
},
"ListPeerChannels.channels[].last_stable_connection": {
"added": "v24.02",
"deprecated": false
},
"ListPeerChannels.channels[].max_accepted_htlcs": {
"added": "v23.02",
"deprecated": false
Expand Down
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ endif

# (method=thread to support xdist)
PYTEST_OPTS := -v -p no:logging $(PYTEST_OPTS)
MY_CHECK_PYTHONPATH=$${PYTHONPATH}$${PYTHONPATH:+:}$(shell pwd)/contrib/pyln-client:$(shell pwd)/contrib/pyln-testing:$(shell pwd)/contrib/pyln-proto/:$(shell pwd)/external/lnprototest:$(shell pwd)/contrib/pyln-spec/bolt1:$(shell pwd)/contrib/pyln-spec/bolt2:$(shell pwd)/contrib/pyln-spec/bolt4:$(shell pwd)/contrib/pyln-spec/bolt7
MY_CHECK_PYTHONPATH=$${PYTHONPATH}$${PYTHONPATH:+:}$(shell pwd)/contrib/pyln-client:$(shell pwd)/contrib/pyln-testing:$(shell pwd)/contrib/pyln-proto/:$(shell pwd)/contrib/pyln-spec/bolt1:$(shell pwd)/contrib/pyln-spec/bolt2:$(shell pwd)/contrib/pyln-spec/bolt4:$(shell pwd)/contrib/pyln-spec/bolt7
# Collect generated python files to be excluded from lint checks
PYTHON_GENERATED= \
contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py \
Expand Down Expand Up @@ -453,14 +453,7 @@ endif

check-units:

check: check-units installcheck check-protos pytest

check-protos: $(ALL_PROGRAMS)
ifeq ($(PYTEST),)
@echo "py.test is required to run the protocol tests, please install using 'pip3 install -r requirements.txt', and rerun 'configure'."; false
else
@(cd external/lnprototest && PYTHONPATH=$(MY_CHECK_PYTHONPATH) LIGHTNING_SRC=../.. $(PYTEST) --runner lnprototest.clightning.Runner $(PYTEST_OPTS))
endif
check: check-units installcheck pytest

pytest: $(ALL_PROGRAMS) $(DEFAULT_TARGETS) $(ALL_TEST_PROGRAMS) $(ALL_TEST_GEN)
ifeq ($(PYTEST),)
Expand Down
1 change: 0 additions & 1 deletion channeld/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ CHANNELD_COMMON_OBJS := \
common/psbt_keypath.o \
common/psbt_open.o \
common/psbt_internal.o \
common/private_channel_announcement.o \
common/pseudorand.o \
common/read_peer_msg.o \
common/setup.o \
Expand Down