forked from lightningnetwork/lnd
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Shuffle #162
Closed
Closed
Shuffle #162
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Before we continue to add more implementations of the GraphSource interface, we need to make sure that all implementations behave the same way if a resource (node or channel) is not found. Either no error should be returned or it should be clearly defined in the method comment which error to expect if the resource is not found. This will be important later when we want to address both a local and remote graph source so that we can handle the cases where a resource is not found in one source and then address the other source rather than erroring out.
for when the node in question is not found. This is consistent with other methods such as GetNodeInfo. This will allow us later on to switch out a grpc NotFound error with the expected error we implement the GraphSource interface with a grpc client.
This field is only ever written to and never read from. We remove it so that later on when we want to convert NetAddress into and from a protobuf message, we don't need to encode the ChainHash uneccessarily. This was included in NetAddress when the plan was still to have LND cater for different blockchains.
We'll make use of this field later when implementing the rpc version of the IsPublic method of the GraphSource interface.
We'll make use of this field later when implementing the rpc version of the GraphSource interface.
This commit mostly consists of boilerplate code that adds the new graphrpc server and provides it with the config it needs. The server is then implemented by graphrpc.Server.
So that we can import it in other packages without causing a circular dependency.
In this commit, a grpc version of the GraphSource interface is implemented. It does so by connecting to server that serves both the lnrpc.LightningClient service along with the graphrpc.GraphClient service. Each method on the GraphSource interface is implemented and tested.
Mux multiplexes the results from a local node GraphSource (likely backed by a ChannelGraph) and a remote graph source (likely backed by a graphrpc.Client) to form a new implementation of GraphSource that can be used by LND for graph queries.
When set, LND will not advertise the gossip queries feature bit and it will not initiate gossip syncing with any peer.
We already set `nobootstrap` in the default node flags for itest nodes, so we can remove this check now. This will allow us to later test bootstrapping in an itest.
Pull reviewers statsStats of the last 30 days for lnd:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.