Skip to content

Commit

Permalink
fix: added correct services for neutrino
Browse files Browse the repository at this point in the history
  • Loading branch information
masterchief164 committed Jun 5, 2023
1 parent eff6df0 commit 260e979
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/net/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -4003,6 +4003,9 @@ class PoolOptions {
this.listen = false;
}

if (this.neutrino)
this.requiredServices |= common.services.NODE_COMPACT_FILTERS;

if (this.selfish) {
this.services &= ~common.services.NETWORK;
this.bip37 = false;
Expand All @@ -4011,7 +4014,7 @@ class PoolOptions {
if (this.bip37)
this.services |= common.services.BLOOM;

if (this.bip157 || this.neutrino)
if (this.bip157)
this.services |= common.services.NODE_COMPACT_FILTERS;

if (this.proxy)
Expand Down

0 comments on commit 260e979

Please sign in to comment.