HomePhabricator

Support NODE_NETWORK_LIMITED filtering by default

Description

Support NODE_NETWORK_LIMITED filtering by default

Summary:
The seeder supports subdomaining by a whitelist filter according to node service flags.
This patch adds NODE_NETWORK_LIMITED to that whitelist by default.

Backport of this commit: https://github.com/sipa/bitcoin-seeder/commit/002bc0bbd5bfd721d7c80d7cdd35a47165f7c1ff

Test Plan:
Run the seeder until it has hundreds or thousands of nodes crawled:

./src/seeder/bitcoin-seeder -host=seeder.status.cash -ns=localhost -mbox=thonkle@protonmail.com -port=5555

Each subdomain should return results according to the filter:
NODE_NETWORK:

dig +noall +answer @:: -p 5555 x1.seeder.status.cash

NODE_NETWORK | NODE_BLOOM:

dig +noall +answer @:: -p 5555 x5.seeder.status.cash

NODE_NETWORK_LIMITED:

dig +noall +answer @:: -p 5555 x400.seeder.status.cash

NODE_NETWORK_LIMITED | NODE_BLOOM:

dig +noall +answer @:: -p 5555 x404.seeder.status.cash

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D10390

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Aug 9 2019, 23:52
thonkleCommitted on Nov 27 2021, 16:57
thonklePushed on Nov 27 2021, 16:57
Reviewer
Restricted Owners Package
Differential Revision
D10390: Support NODE_NETWORK_LIMITED filtering by default
Parents
rABCedd663b35d2f: [Cashtab] Instructions for adding icon to pre-existing token
Branches
Unknown
Tags
Unknown