commit
a35516d4e0
@ -433,14 +433,14 @@ class VerackPacket extends Packet {
|
|||||||
/**
|
/**
|
||||||
* Ping Packet
|
* Ping Packet
|
||||||
* @extends Packet
|
* @extends Packet
|
||||||
* @property {BN|null} nonce
|
* @property {Buffer|null} nonce
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class PingPacket extends Packet {
|
class PingPacket extends Packet {
|
||||||
/**
|
/**
|
||||||
* Create a `ping` packet.
|
* Create a `ping` packet.
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {BN?} nonce
|
* @param {Buffer?} nonce
|
||||||
*/
|
*/
|
||||||
|
|
||||||
constructor(nonce) {
|
constructor(nonce) {
|
||||||
@ -1673,7 +1673,7 @@ class RejectPacket extends Packet {
|
|||||||
/**
|
/**
|
||||||
* Inject properties from reason message and object.
|
* Inject properties from reason message and object.
|
||||||
* @private
|
* @private
|
||||||
* @param {Number} code
|
* @param {Number|String} code
|
||||||
* @param {String} reason
|
* @param {String} reason
|
||||||
* @param {String?} msg
|
* @param {String?} msg
|
||||||
* @param {Hash?} hash
|
* @param {Hash?} hash
|
||||||
|
|||||||
@ -66,7 +66,7 @@ class Peer extends EventEmitter {
|
|||||||
* Create a peer.
|
* Create a peer.
|
||||||
* @alias module:net.Peer
|
* @alias module:net.Peer
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {PeerOptions} options
|
* @param {PeerOptions|PoolOptions} options
|
||||||
*/
|
*/
|
||||||
|
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
|
|||||||
2226
test/net-test.js
Normal file
2226
test/net-test.js
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user