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

introduce stakepoold connection manager #381

Merged
merged 1 commit into from
May 23, 2019
Merged

Conversation

jholdstock
Copy link
Member

dcrstakepool connects to multiple instances of stakepoold and dcrwallet over gRPC. The code managing the dcrwallet gRPC connections is significantly more robust than the stakepoold counterpart.
dcrwallet connections are managed in a single place - namely dcrclient.go. This file is responsible for comms to the multiple dcrwallet connections, error handling, retrying etc. Management of stakepoold connections is scattered throughout the code.

This PR introduces a connection manager for the stakepoold connections, similar to what exists for dcrwallet. Making stakepoold connection management more robust will become important in the future as we take further steps towards #227 and the dcrwallet connections are removed. The PR only refactors existing code and does not add any new functionality.

Marking the PR as a draft because I would like to properly validate the work on testnet before it is merged. Not possible right now because testnet blocks are not being mined

@jholdstock jholdstock marked this pull request as ready for review May 23, 2019 12:53
@jholdstock
Copy link
Member Author

Validated on testnet, works as expected

@dajohi dajohi merged commit 32d7535 into decred:master May 23, 2019
@jholdstock jholdstock deleted the conman branch August 12, 2019 12:35
girino added a commit to girino/dcrstakepool that referenced this pull request Sep 7, 2019
* commit '32d75352ba2290c33767151205a2de6e26df7b15':
  introduce stakepoold connection manager (decred#381)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants