[go: nahoru, domu]

Skip to content

Commit

Permalink
generated files added to pass the 'make check-gen-updated' test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrantil committed Sep 6, 2024
1 parent 3f8bd91 commit 6be03fc
Show file tree
Hide file tree
Showing 7 changed files with 1,160 additions and 946 deletions.
7 changes: 6 additions & 1 deletion .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,7 @@
"ListPeerChannels.channels[]": 1
},
"ListpeersPeers": {
"ListPeers.peers[].alt_addrs[]": 9,
"ListPeers.peers[].channels[]": 4,
"ListPeers.peers[].connected": 2,
"ListPeers.peers[].features": 6,
Expand Down Expand Up @@ -8873,6 +8874,10 @@
"added": "pre-v0.10.1",
"deprecated": null
},
"ListPeers.peers[].alt_addrs[]": {
"added": "v24.11",
"deprecated": null
},
"ListPeers.peers[].channels[]": {
"added": "pre-v0.10.1",
"deprecated": "v23.02"
Expand Down Expand Up @@ -11742,4 +11747,4 @@
"deprecated": null
}
}
}
}
19 changes: 19 additions & 0 deletions cln-grpc/proto/node.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions cln-grpc/src/convert.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions cln-rpc/src/model.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 93 additions & 1 deletion contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,98 @@
}
]
},
"lightning-alt-addr.json": {
"$schema": "../rpc-schema-draft.json",
"type": "object",
"additionalProperties": false,
"rpc": "alt-addr",
"title": "Command to set or clear alternative addresses for node connection.",
"description": [
"The **alt-addr** RPC command allows a node to set or clear alternate addresses for incoming connections.",
"These addresses can be used by peers to connect to the node, offering flexibility in network configurations."
],
"request": {
"required": [
"node_id",
"alt_addrs"
],
"properties": {
"node_id": {
"type": "pubkey",
"description": [
"The public key of the node for which the alternate addresses are being set."
]
},
"alt_addrs": {
"type": "array",
"items": {
"type": "string",
"description": [
"A list of alternate addresses in the format 'ip:port'.",
"An empty string can be used to clear existing alternate addresses."
]
}
}
}
},
"response": {
"required": [],
"properties": {}
},
"errors": [
"On failure, one of the following error codes may be returned:",
"",
"- -32602: Error in given parameters (e.g., invalid address format or node ID)."
],
"author": [
"Max Ranti <<rantil@pm.me>> wrote the initial version of this man page."
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
],
"examples": [
{
"request": {
"id": "example:alt-addr#1",
"method": "alt-addr",
"params": {
"node_id": "0290bb147b0ea569938db873d5899048bd211ad034e57b47824b348756f66e8bca",
"alt_addrs": [
"127.0.0.21:9735"
]
}
},
"response": {}
},
{
"request": {
"id": "example:alt-addr#2",
"method": "alt-addr",
"params": {
"node_id": "0290bb147b0ea569938db873d5899048bd211ad034e57b47824b348756f66e8bca",
"alt_addrs": [
"127.0.0.21:9735",
"192.168.1.1:9736"
]
}
},
"response": {}
},
{
"request": {
"id": "example:alt-addr#3",
"method": "alt-addr",
"params": {
"node_id": "0290bb147b0ea569938db873d5899048bd211ad034e57b47824b348756f66e8bca",
"alt_addrs": [
""
]
}
},
"response": {}
}
]
},
"lightning-askrene-age.json": {
"$schema": "../rpc-schema-draft.json",
"type": "object",
Expand Down Expand Up @@ -35039,4 +35131,4 @@
}
}
}
}
}
1,894 changes: 950 additions & 944 deletions contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions contrib/pyln-testing/pyln/testing/grpc2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def listpeers_peers_log2py(m):

def listpeers_peers2py(m):
return remove_default({
"alt_addrs": [m.alt_addrs for i in m.alt_addrs], # ArrayField[primitive] in generate_composite
"log": [listpeers_peers_log2py(i) for i in m.log], # ArrayField[composite] in generate_composite
"netaddr": [m.netaddr for i in m.netaddr], # ArrayField[primitive] in generate_composite
"connected": m.connected, # PrimitiveField in generate_composite
Expand Down Expand Up @@ -2061,6 +2062,27 @@ def listconfigs_configs_allow_deprecated_apis2py(m):
})


def listconfigs_configs_alt_addr2py(m):
return remove_default({
"sources": [m.sources for i in m.sources], # ArrayField[primitive] in generate_composite
"values_str": [m.values_str for i in m.values_str], # ArrayField[primitive] in generate_composite
})


def listconfigs_configs_alt_announce_addr2py(m):
return remove_default({
"sources": [m.sources for i in m.sources], # ArrayField[primitive] in generate_composite
"values_str": [m.values_str for i in m.values_str], # ArrayField[primitive] in generate_composite
})


def listconfigs_configs_alt_bind_addr2py(m):
return remove_default({
"sources": [m.sources for i in m.sources], # ArrayField[primitive] in generate_composite
"values_str": [m.values_str for i in m.values_str], # ArrayField[primitive] in generate_composite
})


def listconfigs_configs_always_use_proxy2py(m):
return remove_default({
"source": m.source, # PrimitiveField in generate_composite
Expand Down

0 comments on commit 6be03fc

Please sign in to comment.