@dashevo/dashcore-p2p
Version:
Interface to the dash P2P network for Dashcore
27 lines (21 loc) • 608 B
JavaScript
;
var Message = require('../message');
var inherits = require('util').inherits;
var dashcore = require('@dashevo/dashcore-lib');
var BufferUtil = dashcore.util.buffer;
/**
* Request information about active peers
* @extends Message
* @param {Object} options
* @constructor
*/
function GetaddrMessage(arg, options) {
Message.call(this, options);
this.command = 'getaddr';
}
inherits(GetaddrMessage, Message);
GetaddrMessage.prototype.setPayload = function() {};
GetaddrMessage.prototype.getPayload = function() {
return BufferUtil.EMPTY_BUFFER;
};
module.exports = GetaddrMessage;