Merge pull request #80 from unusualbob/fixTypos

Fix typos in docs
This commit is contained in:
Braydon Fuller 2015-10-22 11:55:46 -04:00
commit d2eeb5e09e
2 changed files with 5 additions and 5 deletions

View File

@ -6,11 +6,11 @@ description: Peer-to-Peer Networking Capabilities for Bitcore
## Description
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:
```bash

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
*/