Skip to content

Commit

Permalink
Merge pull request bcoin-org#779 from braydonf/net-tests
Browse files Browse the repository at this point in the history
Add net tests
  • Loading branch information
braydonf committed May 25, 2019
2 parents 55979c1 + fbe64cf commit a35516d
Show file tree
Hide file tree
Showing 3 changed files with 2,230 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/net/packets.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,14 @@ class VerackPacket extends Packet {
/**
* Ping Packet
* @extends Packet
* @property {BN|null} nonce
* @property {Buffer|null} nonce
*/

class PingPacket extends Packet {
/**
* Create a `ping` packet.
* @constructor
* @param {BN?} nonce
* @param {Buffer?} nonce
*/

constructor(nonce) {
Expand Down Expand Up @@ -1673,7 +1673,7 @@ class RejectPacket extends Packet {
/**
* Inject properties from reason message and object.
* @private
* @param {Number} code
* @param {Number|String} code
* @param {String} reason
* @param {String?} msg
* @param {Hash?} hash
Expand Down
2 changes: 1 addition & 1 deletion lib/net/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Peer extends EventEmitter {
* Create a peer.
* @alias module:net.Peer
* @constructor
* @param {PeerOptions} options
* @param {PeerOptions|PoolOptions} options
*/

constructor(options) {
Expand Down
Loading

0 comments on commit a35516d

Please sign in to comment.