mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
This bumps the various module versions as follows: - github.com/decred/dcrd/addrmgr@v1.0.2 - github.com/decred/dcrd/wire@v1.1.0 - github.com/decred/dcrd/chaincfg@v1.1.1 - github.com/decred/dcrd/connmgr@v1.0.1 - github.com/decred/dcrd/dcrutil@v1.1.1 - github.com/decred/dcrd/database@v1.0.1 - github.com/decred/dcrd/hdkeychain@v1.1.0 - github.com/decred/dcrd/txscript@v1.0.1 - github.com/decred/dcrd/blockchain/stake@v1.0.1 - github.com/decred/dcrd/gcs@v1.0.1 - github.com/decred/dcrd/blockchain@v1.0.1 - github.com/decred/dcrd/mining@v1.0.1 - github.com/decred/dcrd/mempool@v1.0.1 - github.com/decred/dcrd/peer@v1.0.1 - github.com/decred/dcrd/rpcclient@v1.0.1 It also updates all of the dependencies for every module accordingly and adds a few missing overrides for transitive dependencies. |
||
|---|---|---|
| .. | ||
| connmanager_test.go | ||
| connmanager.go | ||
| doc.go | ||
| dynamicbanscore_test.go | ||
| dynamicbanscore.go | ||
| go.mod | ||
| go.sum | ||
| log.go | ||
| README.md | ||
| seed.go | ||
| tor.go | ||
connmgr
Package connmgr implements a generic Decred network connection manager.
Overview
This package handles all the general connection concerns such as maintaining a set number of outbound connections, sourcing peers, banning, limiting max connections, tor lookup, etc.
The package provides a generic connection manager which is able to accept connection requests from a source or a set of given addresses, dial them and notify the caller on connections. The main intended use is to initialize a pool of active connections and maintain them to remain connected to the P2P network.
In addition the connection manager provides the following utilities:
- Notifications on connections or disconnections
- Handle failures and retry new addresses from the source
- Connect only to specified addresses
- Permanent connections with increasing backoff retry timers
- Disconnect or Remove an established connection
Installation and Updating
$ go get -u github.com/decred/dcrd/connmgr
License
Package connmgr is licensed under the copyfree ISC License.