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

docs: Add fullblocktests entry and minor consistency updates #956

Merged
merged 5 commits into from
Jan 5, 2018

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented Dec 30, 2017

This PR consists of the following upstream commit:

marcopeereboom and others added 4 commits October 21, 2016 16:37
This commit introduces package connmgr which contains connection
management related functionality.

The following is an overview of the features the package provides:

- Maintain fixed number of outbound connections
- Optional connect-only mode
- Retry persistent connections with increasing back-off
- Source peers from DNS seeds
- Use Tor to resolve DNS
- Dynamic ban scores
- Test coverage

In addition, btcd has been refactored to make use of the new package by
extending the connection manager to work with the server to source and
maintain peer connections. The following is a broad overview of the
changes to integrate the package:

- Simplify peer state by removing pending, retry peers
- Refactor to remove retries which are now handled by connmgr
- Use callback to add addresses sourced from the  DNS seed

Finally the following connection-related things have been improved as a
part of this refactor:

- Fixes 100% cpu usage when network is down (decred#129)
- Fixes issues with max peers (decred#577)
- Simplify outbound peer connections management
docs/README.md Outdated
@@ -209,6 +209,8 @@ information.
Provides a common base for creating and managing Decred network peers.
* [blockchain](https://github.com/decred/dcrd/tree/master/blockchain) -
Implements Decred block handling and chain selection rules
* [blockchain/fullblocktests](https://github.com/btcsuite/decred/tree/master/blockchain/fullblocktests) -
Provides a set of block tests for testing the consensus validation rules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The entries are not consistent in leading spaces which is what the intent of the commit being merged from upstream was. It needs to be applied to not only this line, but all the others as well.

In particular notice how the lines with the bullet points have leading spaces while the continuation lines are tabs. They all need to be spaces to be consistent.

@dnldd dnldd force-pushed the merge_fullblocktests_add_doc branch from e9b44a3 to 1efdc1a Compare December 31, 2017 04:09
@dnldd dnldd force-pushed the merge_fullblocktests_add_doc branch from 1efdc1a to bd8ff54 Compare December 31, 2017 12:25
@davecgh davecgh merged commit bd8ff54 into decred:master Jan 5, 2018
@dnldd dnldd deleted the merge_fullblocktests_add_doc branch June 4, 2018 23:39
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.

4 participants