src.nth.io/

summaryrefslogtreecommitdiff
path: root/bitcoind
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2025-05-28 19:24:22 -0500
committerLuke Hoersten <[email protected]>2025-05-28 19:24:22 -0500
commitaa6a8f5b9375d6ffd4ee9ebf1e41fa3a43c42dc7 (patch)
tree25e297483e5979d45260085ef5867a5c9f2d8f73 /bitcoind
parent8fd2d5ebae4bddbff715521847860918fe9c71e1 (diff)
Enabled the default wallet for wallet based queries on rpc.
Diffstat (limited to 'bitcoind')
-rw-r--r--bitcoind/defaults/main.yaml2
-rw-r--r--bitcoind/templates/bitcoin.conf.j28
2 files changed, 8 insertions, 2 deletions
diff --git a/bitcoind/defaults/main.yaml b/bitcoind/defaults/main.yaml
index 9affac0..870b628 100644
--- a/bitcoind/defaults/main.yaml
+++ b/bitcoind/defaults/main.yaml
@@ -2,7 +2,7 @@
bitcoind_user: "bitcoin"
# https://bitcoincore.org/bin
-bitcoind_version: "28.0"
+bitcoind_version: "29.0"
bitcoind_arch: "{{ansible_architecture}}"
bitcoind_url: "https://bitcoincore.org/bin/bitcoin-core-{{bitcoind_version}}/bitcoin-{{bitcoind_version}}-{{bitcoind_arch}}-linux-gnu.tar.gz"
bitcoind_conf_dir: "/home/{{bitcoind_user}}/.bitcoin"
diff --git a/bitcoind/templates/bitcoin.conf.j2 b/bitcoind/templates/bitcoin.conf.j2
index 82397f8..f189445 100644
--- a/bitcoind/templates/bitcoin.conf.j2
+++ b/bitcoind/templates/bitcoin.conf.j2
@@ -4,12 +4,18 @@ uacomment={{bitcoind_comment}}
datadir={{bitcoind_data_dir}}
logdir={{bitcoind_log_dir}}
-disablewallet=1
+#disablewallet=1
+wallet=default
maxuploadtarget=4096
dbcache=2048
server=1
+rpcbind=127.0.0.1
+{% for ip in bitcoind_rpc_bind %}rpcbind={{ip}}
+{% endfor %}
rpcallowip=127.0.0.1
+{% for ip in bitcoind_rpc_allow_ip %}rpcallowip={{ip}}
+{% endfor %}
rpcuser={{bitcoind_rpc_user}}
rpcpassword={{bitcoind_rpc_pass}}