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

[3/3] Graph RIP: multi: RPC GraphSource #9265

Open
wants to merge 16 commits into
base: elle-graphSourceAbstraction
Choose a base branch
from

Commits on Nov 28, 2024

  1. multi: address funlen linter

    These should be addressed in a refactor PR.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    b4d6fa3 View commit details
    Browse the repository at this point in the history
  2. multi: update comments of GraphSource impl methods

    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.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    1569ad6 View commit details
    Browse the repository at this point in the history
  3. rpcserver: update GetChanInfo return correct grpc error

    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.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    6e26c06 View commit details
    Browse the repository at this point in the history
  4. multi: remove ChainHash from lnwire.NetAddress

    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.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    6e3838c View commit details
    Browse the repository at this point in the history
  5. lnrpc: add IsPublic to lnrpc.NodeInfo

    We'll make use of this field later when implementing the rpc version of
    the IsPublic method of the GraphSource interface.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    507bf98 View commit details
    Browse the repository at this point in the history
  6. lnrpc: add Announced field to lnrpc.ChannelEdge proto message

    We'll make use of this field later when implementing the rpc version of
    the GraphSource interface.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    4fdb82b View commit details
    Browse the repository at this point in the history
  7. graphrpc: add new graphrpc server

    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.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    4122785 View commit details
    Browse the repository at this point in the history
  8. lncfg: export and move DefaultPeerPort to lncfg

    So that we can import it in other packages without causing a circular
    dependency.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    b9333d3 View commit details
    Browse the repository at this point in the history
  9. graphrpc: graph rpc client impl of GraphSource

    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.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    343c92e View commit details
    Browse the repository at this point in the history
  10. graph/sources: add Mux implementation of GraphSource

    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.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    9144af2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2a32a36 View commit details
    Browse the repository at this point in the history
  12. multi: add a --gossip.no-sync option

    When set, LND will not advertise the gossip queries feature bit and it
    will not initiate gossip syncing with any peer.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    c12dc08 View commit details
    Browse the repository at this point in the history
  13. server: remove shouldPeerBootstrap

    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.
    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    e9493a7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    aaadd27 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1996e56 View commit details
    Browse the repository at this point in the history
  16. docs: add release notes

    ellemouton committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    76141ab View commit details
    Browse the repository at this point in the history