cyphernode icon indicating copy to clipboard operation
cyphernode copied to clipboard

Support for neutrino clients

Open i5hi opened this issue 4 years ago • 4 comments

The specfic update in this PR is at /cyphernodeconf_docker where a bitcoin_cbf property is added to the schema/config-v0.2.5.json and prompters/900_bitcoin.js to allow a user the option to set peerblockfilters=1 to templates/bitcoin/bitcoin.conf to serve compact block filters for neutrino clients.

i5hi avatar Jun 03 '21 23:06 i5hi

This can be tested using:

docker exec -it dist_bitcoin_1 bitcoin-cli getnetworkinfo | jq -r ".localservicesnames"

[
   "NETWORK",
   "WITNESS",
   "COMPACT_FILTERS",
   "NETWORK_LIMITED"
]

i5hi avatar Jun 04 '21 04:06 i5hi

Thanks for the PR @vmenond ! Sorry for the delay, I was away in the last week or so.

Is the overhead of enabling peerblockfilters a big problem? Do you think it would be a good idea to just enable it by default without asking the user?

Kexkey avatar Jun 19 '21 02:06 Kexkey

Hey @Kexkey! So sorry about the delay. Just saw your response to this!

There is quite a bit of networking overhead - I haven't tested it but some devs at bdk have and mentioned the overhead can be quite a bit, so might not be a good default.

Will run a few tests on this and share some exact figures.

i5hi avatar Aug 12 '21 23:08 i5hi

Thanks for your contribution! Can you base your PR on dev? I'd like to try this.

Kexkey avatar Sep 01 '21 19:09 Kexkey