diff options
| author | Luke Hoersten <[email protected]> | 2025-08-03 12:51:13 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2025-08-03 12:51:13 -0500 |
| commit | 4f6c1ba4204462daf76cbd514180fef58bc6f200 (patch) | |
| tree | 0c87b04f7f891d7db47e1bb1530b172ae27850d0 /bitcoind/templates | |
| parent | bda90a6ee41963ae5b8e84878bcba8cab4d83a69 (diff) | |
Lots of performance updates and added some flags for reindexing etc. Also added zram comporession.
Diffstat (limited to 'bitcoind/templates')
| -rw-r--r-- | bitcoind/templates/bitcoin.conf.j2 | 10 | ||||
| -rw-r--r-- | bitcoind/templates/bitcoind.service.j2 | 3 |
2 files changed, 8 insertions, 5 deletions
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 |
