UNPKG

@dashevo/dashcore-p2p

Version:

Interface to the dash P2P network for Dashcore

26 lines (20 loc) 580 B
'use strict'; var Message = require('../message'); var inherits = require('util').inherits; var dashcore = require('@dashevo/dashcore-lib'); var BufferUtil = dashcore.util.buffer; /** * A message in response to a version message. * @extends Message * @constructor */ function VerackMessage(arg, options) { Message.call(this, options); this.command = 'verack'; } inherits(VerackMessage, Message); VerackMessage.prototype.setPayload = function() {}; VerackMessage.prototype.getPayload = function() { return BufferUtil.EMPTY_BUFFER; }; module.exports = VerackMessage;