filter header sending.

This commit is contained in:
Christopher Jeffrey 2016-06-11 23:23:53 -07:00
parent 84a04b33e5
commit 8471ce165d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -338,6 +338,8 @@ Peer.prototype.announce = function announce(items) {
if (this.preferHeaders) {
if (item instanceof bcoin.abstractblock) {
if (this.invFilter.test(item.hash()))
continue;
headers.push(item);
continue;
}