-
Notifications
You must be signed in to change notification settings - Fork 895
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
pyln.client gossmap support #4582
pyln.client gossmap support #4582
Commits on Sep 7, 2021
-
pyln-spec: update to latest version of the spec.
Changelog-Changed: pyln-spec: updated to latest BOLT versions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 11f0634 - Browse repository at this point
Copy the full SHA 11f0634View commit details -
pyln.client: don't try to use module inside setup.py.
This fails once it has dependencies (next patch): instead extract version manually. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 83e3480 - Browse repository at this point
Copy the full SHA 83e3480View commit details -
pyln.client: new functionality to access Gossmap.
It doesn't do much work, but it does parse the gossmap file and extract nodes and channels. [ Fixup by Michael Schmoock <michael@schmoock.net> ] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 6ab1fe7 - Browse repository at this point
Copy the full SHA 6ab1fe7View commit details -
pyln-client/gossmap: save deconstructed fields instead of raw msg bytes.
We have to parse them anyway, so why not make them accessible. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 3ae4068 - Browse repository at this point
Copy the full SHA 3ae4068View commit details -
pyln-client/gossmap: add a little documentation.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 6bf59b4 - Browse repository at this point
Copy the full SHA 6bf59b4View commit details -
pyln-proto: expose ShortChannelId and PublicKey.
They're generally useful. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for ee5d3ba - Browse repository at this point
Copy the full SHA ee5d3baView commit details -
pyln-client/gossmap: use ShortChannelId class from pyln.proto, if ava…
…ilable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 5fc88a5 - Browse repository at this point
Copy the full SHA 5fc88a5View commit details -
pyln-client/gossmap: add NodeId class.
This is more efficient than converting them all to Pubkeys: about 3.8 seconds vs 5.4 seconds. Usually treating them as raw bytes is what we want anyway. [ Fixup by Michael Schmoock <michael@schmoock.net> ] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 8100d9d - Browse repository at this point
Copy the full SHA 8100d9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a871262 - Browse repository at this point
Copy the full SHA a871262View commit details -
Configuration menu - View commit details
-
Copy full SHA for f19c43f - Browse repository at this point
Copy the full SHA f19c43fView commit details -
pyln-client/gossmap: adds channel satoshi capacity
This reads the `gossip_store_channel_amount` that always follows the `channel_announcement` messages. Therefore it uses an internal variable _last_scid to know what channel has been added last time.
Configuration menu - View commit details
-
Copy full SHA for fb56404 - Browse repository at this point
Copy the full SHA fb56404View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0d101e - Browse repository at this point
Copy the full SHA d0d101eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4547158 - Browse repository at this point
Copy the full SHA 4547158View commit details -
pyln-client/gossmap: Don't mix bytes and GossmapNodeId
Do not mix bytes and GossmapNodeId when accessing Gossmap.nodes dicts. Therefore the definion got GossmapNodeId also needed to be pulled to the beginning of the file.
Configuration menu - View commit details
-
Copy full SHA for f562e51 - Browse repository at this point
Copy the full SHA f562e51View commit details -
pyln-client/gossmap: more fixes, make mypy happier.
Mainly fixing type annotations, but some real fixes: 1. GossmapHalfchannel.from_str() should be a classmethod. 2. update_channel had weird, unusable default values (fields can't be NULL, since we use it below). [ There was one more occurence where isinstance should be used above type() == xyz comparison. -- MS ] Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for bd6346c - Browse repository at this point
Copy the full SHA bd6346cView commit details -
pyln-client/gossmap: make test gossip_store include channel_updates, …
…deletions. Suggested-by: @mschmook Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for e715302 - Browse repository at this point
Copy the full SHA e715302View commit details -
pyln-client/gossmap: have channels link to their nodes instead of id
This is likely easier for programmers and does not use more mem as we already load all this.
Configuration menu - View commit details
-
Copy full SHA for 6cbdc5a - Browse repository at this point
Copy the full SHA 6cbdc5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56babd2 - Browse repository at this point
Copy the full SHA 56babd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67e62fc - Browse repository at this point
Copy the full SHA 67e62fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 54a9796 - Browse repository at this point
Copy the full SHA 54a9796View commit details -
pyln-client/gossmap: init GossmapNode and Id also with hexstring
also improves test coverage Changelog-Added: pyln-client: routines for direct access to the gossip store as Gossmap
Configuration menu - View commit details
-
Copy full SHA for 5187a1e - Browse repository at this point
Copy the full SHA 5187a1eView commit details -
pyln-client: fix mypy warnings, fix and test deletion of a channel.
This only happens when a deletion is added by a running gossipd, so we put a deletion at the end of the store to test it. mypy noticed that this code was nonsensical, so clearly untested. The testing noticed that making a nodeid from a string was also buggy. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for b4a8cbf - Browse repository at this point
Copy the full SHA b4a8cbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56cac76 - Browse repository at this point
Copy the full SHA 56cac76View commit details