From 4f6c1ba4204462daf76cbd514180fef58bc6f200 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sun, 3 Aug 2025 12:51:13 -0500 Subject: Lots of performance updates and added some flags for reindexing etc. Also added zram comporession. --- bitcoind/templates/bitcoin.conf.j2 | 10 ++++++---- bitcoind/templates/bitcoind.service.j2 | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'bitcoind/templates') diff --git a/bitcoind/templates/bitcoin.conf.j2 b/bitcoind/templates/bitcoin.conf.j2 index 72cc6e4..f0e4206 100644 --- a/bitcoind/templates/bitcoin.conf.j2 +++ b/bitcoind/templates/bitcoin.conf.j2 @@ -1,13 +1,12 @@ -externalip={{node_external_ip}} +externalip={{bitcoind_external_ip}} uacomment={{bitcoind_comment}} datadir={{bitcoind_data_dir}} logdir={{bitcoind_log_dir}} -disablewallet={{bitcoind_disable_wallet}} +maxuploadtarget=1024 +dbcache={{bitcoind_dbcache}} -maxuploadtarget=4096 -dbcache=2048 server=1 rpcbind=127.0.0.1 @@ -16,8 +15,11 @@ rpcbind=127.0.0.1 rpcallowip=127.0.0.1 {% for ip in bitcoind_rpc_allow_ip %}rpcallowip={{ip}} {% endfor %} + +{% if bitcoind_rpc_user is defined %} rpcuser={{bitcoind_rpc_user}} rpcpassword={{bitcoind_rpc_pass}} +{% endif %} zmqpubrawblock=tcp://127.0.0.1:28332 zmqpubrawtx=tcp://127.0.0.1:28333 diff --git a/bitcoind/templates/bitcoind.service.j2 b/bitcoind/templates/bitcoind.service.j2 index dfcc6e5..7c4525a 100644 --- a/bitcoind/templates/bitcoind.service.j2 +++ b/bitcoind/templates/bitcoind.service.j2 @@ -3,7 +3,8 @@ Description=bitcoind After=network.target [Service] -ExecStart=/usr/local/bin/bitcoind +ExecStart=/usr/local/bin/bitcoind{% if bitcoind_reindex %} -reindex{% endif %} + User={{bitcoind_user}} PrivateTmp=true -- cgit v1.2.3