Skip to content

Commit

Permalink
Updated cyphernodeconf to support option to enable peerblockfilters a…
Browse files Browse the repository at this point in the history
…s property bitcoin_cbf
  • Loading branch information
i5hi committed Jun 3, 2021
1 parent 17a953c commit f7a208b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions cyphernodeconf_docker/help.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"bitcoin_rpcpassword": "Bitcoin Core's <font underline='true'>RPC password</font> used by Cyphernode when calling the node.",
"bitcoin_prune": "If you don't have at least 350GB of disk space, you should run Bitcoin Core in <font underline='true'>prune mode</font>. <font color='#00ff00'>NOTE</font>: when running Bitcoin Core in prune mode, the incoming transactions' fees cannot be computed by Cyphernode and won't be part of the addresses watching's callbacks payload.",
"bitcoin_prune_size": "Minimum <font underline='true'>size</font> is <font color='#00ff00'>550</font>. This option specifies the maximum number in MB Bitcoin Core will allocate for raw block & undo data.",
"bitcoin_cbf": "Compact Block Filters serve filtered block data to neutrino clients and have a networking overhead.",
"bitcoin_uacomment": "<font underline='true'>User Agent</font> string used by Bitcoin Core. (Optional)",
"bitcoin_datapath": "<font underline='true'>Path name</font> to where Bitcoin Core's data files (blockchain data, wallets, configs, etc.) are stored. This directory will be mounted into the Bitcoin node's container. If you already have a sync'ed node, you can copy data there to be used by the node, instead of resyncing everything. <font color='#00ff00'>NOTE</font>: only copy chainstate/ and blocks/ contents. <font color='#ff0000'>If running on OSX, check mountable directories in Docker's File Sharing configs.</font>",
"bitcoin_datapath_custom": " ",
Expand Down
6 changes: 6 additions & 0 deletions cyphernodeconf_docker/prompters/900_bitcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ module.exports = {
return true;
}
}, // TODO: ask for size of prune
{
type: 'confirm',
name: 'bitcoin_cbf',
default: utils.getDefault( 'bitcoin_cbf' ),
message: prefix()+'Enable compact block filters?'+utils.getHelp('bitcoin_cbf')
},
{
when: bitcoinInternal,
type: 'input',
Expand Down
10 changes: 10 additions & 0 deletions cyphernodeconf_docker/schema/config-v0.2.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"bitcoin_rpcuser",
"bitcoin_rpcpassword",
"bitcoin_prune",
"bitcoin_cbf",
"bitcoin_datapath",
"bitcoin_mode",
"bitcoin_expose",
Expand Down Expand Up @@ -375,6 +376,15 @@
550
]
},
"bitcoin_cbf": {
"$id": "#/properties/bitcoin_cbf",
"type": "boolean",
"title": "Bitcoin serve compact block filters",
"default": false,
"examples": [
"false"
]
},
"bitcoin_datapath": {
"$id": "#/properties/bitcoin_datapath",
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions cyphernodeconf_docker/templates/bitcoin/bitcoin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ prune=<%= bitcoin_prune_size || 550 %>
<% } else { %>
txindex=1
blockfilterindex=1
<% if ( bitcoin_cbf ) { %>
peerblockfilters=1
<% } %>
<% } %>



zmqpubrawblock=tcp://0.0.0.0:18501
zmqpubrawtx=tcp://0.0.0.0:18502
Expand Down

0 comments on commit f7a208b

Please sign in to comment.