filter header sending.
This commit is contained in:
parent
84a04b33e5
commit
8471ce165d
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user