peer: Update README.md/doc.go to reflect reality.
This commit is contained in:
parent
3e0e466ac0
commit
f1d6b2fc10
@ -5,25 +5,25 @@ peer
|
||||
[](http://copyfree.org)
|
||||
[](https://pkg.go.dev/github.com/decred/dcrd/peer/v2)
|
||||
|
||||
Package peer provides a common base for creating and managing bitcoin network
|
||||
Package peer provides a common base for creating and managing Decred network
|
||||
peers.
|
||||
|
||||
This package has intentionally been designed so it can be used as a standalone
|
||||
package for any projects needing a full featured bitcoin peer base to build on.
|
||||
package for any projects needing a full featured Decred peer base to build on.
|
||||
|
||||
## Overview
|
||||
|
||||
This package builds upon the wire package, which provides the fundamental
|
||||
primitives necessary to speak the bitcoin wire protocol, in order to simplify
|
||||
primitives necessary to speak the Decred wire protocol, in order to simplify
|
||||
the process of creating fully functional peers. In essence, it provides a
|
||||
common base for creating concurrent safe fully validating nodes, Simplified
|
||||
Payment Verification (SPV) nodes, proxies, etc.
|
||||
|
||||
A quick overview of the major features peer provides are as follows:
|
||||
|
||||
- Provides a basic concurrent safe bitcoin peer for handling bitcoin
|
||||
- Provides a basic concurrent safe Decred peer for handling Decred
|
||||
communications via the peer-to-peer protocol
|
||||
- Full duplex reading and writing of bitcoin protocol messages
|
||||
- Full duplex reading and writing of Decred protocol messages
|
||||
- Automatic handling of the initial handshake process including protocol
|
||||
version negotiation
|
||||
- Asynchronous message queueing of outbound messages with optional channel for
|
||||
@ -33,10 +33,10 @@ A quick overview of the major features peer provides are as follows:
|
||||
incoming connections so they have flexibility to establish connections as
|
||||
they see fit (proxies, etc)
|
||||
- User agent name and version
|
||||
- Bitcoin network
|
||||
- Decred network
|
||||
- Service support signalling (full nodes, etc)
|
||||
- Maximum supported protocol version
|
||||
- Ability to register callbacks for handling bitcoin protocol messages
|
||||
- Ability to register callbacks for handling Decred protocol messages
|
||||
- Inventory message batching and send trickling with known inventory detection
|
||||
and avoidance
|
||||
- Automatic periodic keep-alive pinging and pong responses
|
||||
|
||||
@ -140,6 +140,5 @@ raw message bytes using a format similar to hexdump -C.
|
||||
Improvement Proposals
|
||||
|
||||
This package supports all improvement proposals supported by the wire package.
|
||||
(https://pkg.go.dev/github.com/decred/dcrd/wire#hdr-Bitcoin_Improvement_Proposals)
|
||||
*/
|
||||
package peer
|
||||
|
||||
Loading…
Reference in New Issue
Block a user