alterdot-p2p
Version:
Interface to the alterdot P2P network for Alterdot
26 lines (20 loc) • 603 B
JavaScript
;
var Message = require('../message');
var inherits = require('util').inherits;
var alterdot = require('alterdot-lib');
var BufferUtil = alterdot.util.buffer;
/**
* Request peer to clear data for a bloom filter
* @extends Message
* @constructor
*/
function FilterclearMessage(arg, options) {
Message.call(this, options);
this.command = 'filterclear';
}
inherits(FilterclearMessage, Message);
FilterclearMessage.prototype.setPayload = function() {};
FilterclearMessage.prototype.getPayload = function() {
return BufferUtil.EMPTY_BUFFER;
};
module.exports = FilterclearMessage;