Merge pull request #45 from fanatid/filteradd
Fix filteradd in Message.COMMANDS
This commit is contained in:
commit
b7f4d5cb60
@ -927,7 +927,7 @@ FilterAdd.prototype.getPayload = function() {
|
|||||||
return bw.concat();
|
return bw.concat();
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.FilterAdd = Message.COMMANDS.filterload = FilterAdd;
|
module.exports.FilterAdd = Message.COMMANDS.filteradd = FilterAdd;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request peer to apply a bloom filter to 'inv' messages sent back
|
* Request peer to apply a bloom filter to 'inv' messages sent back
|
||||||
|
|||||||
@ -46,9 +46,15 @@ describe('Messages', function() {
|
|||||||
names.forEach(function(name) {
|
names.forEach(function(name) {
|
||||||
var command = commands[name];
|
var command = commands[name];
|
||||||
var data = Data[command.toUpperCase()];
|
var data = Data[command.toUpperCase()];
|
||||||
|
|
||||||
it('should have data for ' + name, function() {
|
it('should have data for ' + name, function() {
|
||||||
should.exist(data);
|
should.exist(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('command for name ' + name, function() {
|
||||||
|
Messages.Message.COMMANDS[command].should.equal(Messages[name]);
|
||||||
|
});
|
||||||
|
|
||||||
describe(name, function() {
|
describe(name, function() {
|
||||||
var message = new Messages[name]();
|
var message = new Messages[name]();
|
||||||
it('should be able to create instance', function() {
|
it('should be able to create instance', function() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user