Merge branch 'master' of github.com:bitpay/bitcore-p2p

This commit is contained in:
Jason Dreyzehner 2015-11-17 18:55:38 -05:00
commit c81875f014
3 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
# Peer-to-Peer
The `bitcore-p2p` module provides peer-to-peer networking capabilites for [Bitcore](https://github.com/bitpay/bitcore), and includes [Peer](peer.md) and [Pool](pool.md) classes. A [Message](messages.md) class is also exposed, in addition to [several types of messages](messages.md). Pool will maintain connection to several peers, Peers represents a node in the bitcoin network, and Message represents data sent to and from a Peer. For detailed technical information about the bitcoin protocol, please visit the [Protocol Specification](https://en.bitcoin.it/wiki/Protocol_specification) on the Bitcoin Wiki.
The `bitcore-p2p` module provides peer-to-peer networking capabilities for [Bitcore](https://github.com/bitpay/bitcore), and includes [Peer](peer.md) and [Pool](pool.md) classes. A [Message](messages.md) class is also exposed, in addition to [several types of messages](messages.md). Pool will maintain connection to several peers, Peers represents a node in the bitcoin network, and Message represents data sent to and from a Peer. For detailed technical information about the bitcoin protocol, please visit the [Protocol Specification](https://en.bitcoin.it/wiki/Protocol_specification) on the Bitcoin Wiki.
## Installation
Peer-to-peer is implemented as a seperate module.
Peer-to-peer is implemented as a separate module.
For node projects:

View File

@ -116,7 +116,7 @@ Pool.PeerEvents = ['version', 'inv', 'getdata', 'ping', 'pong', 'addr',
];
/**
* Will initiatiate connection to peers, if available peers have been added to
* Will initiate connection to peers, if available peers have been added to
* the pool, it will connect to those, otherwise will use DNS seeds to find
* peers to connect. When a peer disconnects it will add another.
*/
@ -150,7 +150,7 @@ Pool.prototype.numberConnected = function numberConnected() {
};
/**
* Will fill the conneted peers to the maximum amount.
* Will fill the connected peers to the maximum amount.
*/
Pool.prototype._fillConnections = function _fillConnections() {
var length = this._addrs.length;
@ -211,7 +211,7 @@ Pool.prototype._connectPeer = function _connectPeer(addr) {
/**
* Adds a peer with a connected socket to the _connectedPeers object, and
* intializes the associated event handlers.
* initializes the associated event handlers.
* @param {Socket} - socket - A new connected socket
* @param {Object} - addr - The associated addr object for the peer
*/

View File

@ -1,6 +1,6 @@
{
"name": "bitcore-p2p",
"version": "0.15.1",
"version": "1.0.0",
"description": "Interface to the bitcoin P2P network for bitcore",
"author": "BitPay <dev@bitpay.com>",
"main": "index.js",