cloudhead / cloudhead/nakamoto

Support service bit filtering

Open
#50 0 comments 1 reaction 0 assignees View on GitHub
good first issue help wanted
Dominant language
Rust
Stars
391
Forks
64
PR merge metrics
No merged PRs in 30d

Description

To have a higher chance to connect to peers with `NODE_COMPACT_FILTERS` support, we could use the service bit filtering functionality of DNS seeds.

This is not a very well documented feature, but there is some information here:
https://bitcoin.stackexchange.com/questions/60373/dns-seeder-options

The filter we'd be interested in is `NODE_NETWORK | NODE_COMPACT_FILTERS`, so `1 << 0 | 1 << 6 = 65`.

Since not all seeds support this functionality, we should fall back on a regular DNS query if we're unable to retrieve addresses from the seeds.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.