fcash-p2p
Version:
Interface to the bitcoin P2P network for fcash
27 lines (21 loc) • 590 B
JavaScript
;
var Message = require('../message');
var inherits = require('util').inherits;
var fcash = require('fcash-lib');
var BufferUtil = fcash.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;