From 2c150961f36ebf03beef1e0b0b484201eadecfbd Mon Sep 17 00:00:00 2001 From: Jorge Montejo Date: Mon, 6 May 2024 20:30:21 +0200 Subject: [PATCH] add new config to the bitcoin daemon (#3366) --- apps/bitcoind/config.json | 55 ++++++++++++++++++++++++++++++-- apps/bitcoind/docker-compose.yml | 4 +++ 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/apps/bitcoind/config.json b/apps/bitcoind/config.json index e5742fdf..d64d3519 100644 --- a/apps/bitcoind/config.json +++ b/apps/bitcoind/config.json @@ -7,7 +7,7 @@ "port": 8333, "id": "bitcoind", "description": "Bitcoin core node", - "tipi_version": 1, + "tipi_version": 2, "version": "26.0", "categories": [ "finance" @@ -53,10 +53,61 @@ "hint": "Maintain at most N connections to peers. Leave empty for default 125.", "required": false, "env_variable": "BITCOIND_MAXPEERS" + }, + { + "type": "text", + "label": "Enable txindex", + "hint": "Enabled by default", + "required": false, + "env_variable": "BITCOIND_TXINDEX", + "options": [ + { + "label": "Yes", + "value": "1" + }, + { + "label": "No", + "value": "0" + } + ] + }, + { + "type": "text", + "label": "Enable peer bloom filters", + "hint": "Enabled by default", + "required": false, + "env_variable": "BITCOIND_BLOOM_FILTERS", + "options": [ + { + "label": "Yes", + "value": "1" + }, + { + "label": "No", + "value": "0" + } + ] + }, + { + "type": "text", + "label": "Enable block filter index", + "hint": "Enabled by default", + "required": false, + "env_variable": "BITCOIND_BLOCK_FILTER", + "options": [ + { + "label": "Yes", + "value": "1" + }, + { + "label": "No", + "value": "0" + } + ] } ], "supported_architectures": [ "amd64", "arm64" ] -} +} \ No newline at end of file diff --git a/apps/bitcoind/docker-compose.yml b/apps/bitcoind/docker-compose.yml index 54dce6c3..6b7f6792 100644 --- a/apps/bitcoind/docker-compose.yml +++ b/apps/bitcoind/docker-compose.yml @@ -18,6 +18,10 @@ services: --maxmempool=${BITCOIND_MAX_MEMPOOL:-300} --listen=${BITCOIND_LISTEN:-0} --maxconnections=${BITCOIND_MAXPEERS:-125} + --txindex=${BITCOIND_TXINDEX:-1} + --peerbloomfilters=${BITCOIND_BLOOM_FILTERS:-1} + --blockfilterindex=${BITCOIND_BLOCK_FILTER:-1} + --peerblockfilters=${BITCOIND_BLOCK_FILTER:-1} networks: - tipi_main_network labels: