@csio.company/dogecore-p2p
Version:
Interface to the dogecoin P2P network for dogecore
27 lines (21 loc) • 637 B
JavaScript
;
var Message = require('../message');
var inherits = require('util').inherits;
var bitcore = require('@csio.company/dogecore-lib');
var BufferUtil = bitcore.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;