Skip to content

Conversation

petertodd
Copy link
Contributor

bitcoinj SPV clients do no peer discovery beyond the DNS seeds, so it's possible that the seeds will only give them non-bloom-supporting peers with BIP111, NODE_BLOOM.

if (clientVersion < NO_BLOOM_VERSION) {
if (!(services & NODE_NETWORK)) return false;
} else {
if (!(services & (NODE_NETWORK | NODE_BLOOM))) return false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you want: (services & (NODE_NETWORK | NODE_BLOOM)) != (NODE_NETWORK | NODE_BLOOM).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or (more obscure):

(services | ~(NODE_NETWORK | NODE_BLOOM)) != -1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh! Fixed.

bitcoinj SPV clients do no peer discovery beyond the DNS seeds, so it's
possible that the seeds will only give them non-bloom-supporting peers
with BIP111, NODE_BLOOM.
@jonasschnelli
Copy link
Contributor

Thinking loud: Would is be critical to add a only NODE_BLOOM dns query domain to some of the seeders. I could imaging having a *b*.seed.bitcoin.jonassschnelli.ch for nodes that support bloom filtering. Or instead of b. it could also be a int representing a bitmap that could be used for more (upcoming?) features (like GETUTXOS, etc.).

I though bitcoinj has moved to the "Cartographer" stuff (http seed)?

@jonasschnelli
Copy link
Contributor

Nevermind my last comment. Didn't realized that we are talking on the bitcoin-seeder repository ... :)

@petertodd
Copy link
Contributor Author

Incidentally, we may not want to actually merge this pull-req - better if bitcoinj implements proper peer discovery like breadwallet does.

@Sjors
Copy link
Contributor

Sjors commented Aug 19, 2019

Isn't this covered today by NODE_NETWORK | NODE_BLOOM and NODE_NETWORK_LIMITED | NODE_BLOOM filters?

@petertodd
Copy link
Contributor Author

@Sjors Yes I think it is; closing.

@petertodd petertodd closed this Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants