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

Notifications over GRPC #7084

Merged
merged 24 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
932396e
Add schema's notifications
ErikDeSmedt Feb 7, 2024
92f8832
msggen: Add notifications to the `Model`
ErikDeSmedt Feb 7, 2024
8ff5b1d
msggen: Cut gprc into pieces!!!
ErikDeSmedt Feb 7, 2024
84e950a
msggen: Move rpc-model generator
ErikDeSmedt Feb 12, 2024
090f0a6
msggen: Add notification-structs to `cln_rpc`
ErikDeSmedt Feb 7, 2024
1ce8565
msggen: Provide parent in `visit`-method of patch
ErikDeSmedt Feb 8, 2024
cf99616
msggen: Choose better when a subfield is optional
ErikDeSmedt Feb 8, 2024
694d422
msggen: Add test for serialization of notifications
ErikDeSmedt Feb 13, 2024
fb766d1
cln-rpc: Test for serialization of block_added
ErikDeSmedt Feb 16, 2024
f96f3a7
msggen: RequestStructs for notification-streams
ErikDeSmedt Feb 13, 2024
5f33625
msggen : Add notification-messages to proto-file
ErikDeSmedt Feb 8, 2024
e1d6869
msggen: Add conversions for notification pb to json
ErikDeSmedt Feb 13, 2024
5098e42
msggen: Add notifications to proto-file
ErikDeSmedt Feb 8, 2024
b01b0a7
msggen: Implement notification-server
ErikDeSmedt Feb 14, 2024
0ac94b7
grpc-plugin: Implement notifications
ErikDeSmedt Feb 14, 2024
0e96f07
msggen: Schema for ConnectNotification + collisions
ErikDeSmedt Feb 15, 2024
d70e2c0
cln_rpc: Test deserialize_connect_notification
ErikDeSmedt Feb 16, 2024
d44b969
Test for notifications over grpc
ErikDeSmedt Feb 16, 2024
ba693ac
msggen: Allow non_camel_case for notification
ErikDeSmedt Feb 19, 2024
1fd70d8
Include `grpc-msg-buffer-size` in docs
ErikDeSmedt Feb 21, 2024
4d015d0
Fix test for notification of custommsg
ErikDeSmedt Feb 21, 2024
8d97cea
gci: Try to fix the pyln-grpc installation in CI
cdecker Feb 21, 2024
7a7615d
Makefile: Include pyln-grpc proto in PYTHONPATH
ErikDeSmedt Feb 22, 2024
28a0186
Updated poetry.lock file
ErikDeSmedt Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,8 @@ jobs:
run: |
bash -x .github/scripts/setup.sh
set -e
pip3 install --user pip wheel poetry
poetry export -o requirements.txt --with dev --without-hashes
python3 -m pip install -r requirements.txt
poetry install
pip3 install --user wheel poetry
poetry install --with dev --no-root

- name: Install bitcoind
run: .github/scripts/install-bitcoind.sh
Expand Down
123 changes: 122 additions & 1 deletion .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,17 @@
"failed": 2,
"pending": 1
},
"PeerConnectAddressType": {
"ipv4": 1,
"ipv6": 2,
"local socket": 0,
"torv2": 3,
"torv3": 4
},
"PeerConnectDirection": {
"in": 0,
"out": 1
},
"PluginCommand": {
"list": 4,
"rescan": 2,
Expand Down Expand Up @@ -685,6 +696,19 @@
"Bkpr-listincomeResponse": {
"Bkpr-ListIncome.income_events[]": 1
},
"BlockAddedNotification": {
"block_added.hash": 1,
"block_added.height": 2
},
"ChannelOpenFailedNotification": {
"channel_open_failed.channel_id": 1
},
"ChannelOpenedNotification": {
"channel_opened.channel_ready": 4,
"channel_opened.funding_msat": 2,
"channel_opened.funding_txid": 3,
"channel_opened.id": 1
},
"CheckmessageRequest": {
"CheckMessage.message": 1,
"CheckMessage.pubkey": 3,
Expand Down Expand Up @@ -712,7 +736,16 @@
"Connect.address.address": 3,
"Connect.address.port": 4,
"Connect.address.socket": 2,
"Connect.address.type": 1
"Connect.address.type": 1,
"connect.address.address": 3,
"connect.address.port": 4,
"connect.address.socket": 2,
"connect.address.type": 1
},
"ConnectNotification": {
"connect.address": 3,
"connect.direction": 2,
"connect.id": 1
},
"ConnectRequest": {
"Connect.host": 2,
Expand Down Expand Up @@ -767,6 +800,10 @@
"CreateOnion.onion": 1,
"CreateOnion.shared_secrets[]": 2
},
"CustomMsgNotification": {
"custommsg.payload": 2,
"custommsg.peer_id": 1
},
"DatastoreRequest": {
"Datastore.generation": 4,
"Datastore.hex": 2,
Expand Down Expand Up @@ -9027,6 +9064,90 @@
"added": "pre-v0.10.1",
"deprecated": false
},
"block_added": {
"added": "v24.05",
"deprecated": null
},
"block_added.hash": {
"added": "v24.05",
"deprecated": false
},
"block_added.height": {
"added": "v24.05",
"deprecated": false
},
"channel_open_failed": {
"added": "v24.05",
"deprecated": null
},
"channel_open_failed.channel_id": {
"added": "v24.05",
"deprecated": false
},
"channel_opened": {
"added": "v24.05",
"deprecated": null
},
"channel_opened.channel_ready": {
"added": "v24.05",
"deprecated": false
},
"channel_opened.funding_msat": {
"added": "v24.05",
"deprecated": false
},
"channel_opened.funding_txid": {
"added": "v24.05",
"deprecated": false
},
"channel_opened.id": {
"added": "v24.05",
"deprecated": false
},
"connect": {
"added": "v24.05",
"deprecated": null
},
"connect.address": {
"added": "v24.05",
"deprecated": false
},
"connect.address.address": {
"added": "v24.05",
"deprecated": false
},
"connect.address.port": {
"added": "v24.05",
"deprecated": false
},
"connect.address.socket": {
"added": "v24.05",
"deprecated": false
},
"connect.address.type": {
"added": "v24.05",
"deprecated": false
},
"connect.direction": {
"added": "v24.05",
"deprecated": false
},
"connect.id": {
"added": "v24.05",
"deprecated": false
},
"custommsg": {
"added": "v24.05",
"deprecated": null
},
"custommsg.payload": {
"added": "v24.05",
"deprecated": false
},
"custommsg.peer_id": {
"added": "v24.05",
"deprecated": false
},
"multifundchannel": {
"added": "pre-v0.10.1",
"deprecated": null
Expand Down
Loading
Loading