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

rpcserver: decouple from server. #1730

Merged
merged 1 commit into from
Oct 22, 2019

Commits on Oct 22, 2019

  1. rpcserver: decouple from server.

    This decouples the RPC server from the internal dcrd server to move
    closer to being able to split it out into a separate package.
    
    In order to accomplish this, it introduces an rpcserverConfig type and
    several new interfaces, named rpcserverPeer, rpcserverConnManager, and
    rpcserverBlockManager, which are necessary to break the direct
    dependencies on the main server and block manager instances.
    
    It also adds concrete implementations of the new interfaces and uses
    them to configure the RPC server.
    
    Ultimately, the RPC server should ideally be decoupled even more such
    that all of the types in the configuration struct use interfaces instead
    of the concrete types.  Doing this would make the RPC server much easier
    to internally test since it would allow creating lightweight stubs for
    the various pieces.
    dnldd committed Oct 22, 2019
    Configuration menu
    Copy the full SHA
    59c9379 View commit details
    Browse the repository at this point in the history