UNPKG

@axerunners/axecore-p2p

Version:

Interface to the axe P2P network for Axecore

27 lines (21 loc) 608 B
'use strict'; var Message = require('../message'); var inherits = require('util').inherits; var axecore = require('@axerunners/axecore-lib'); var BufferUtil = axecore.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;