Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bitcoin.conf #592

Merged
merged 4 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy/bitcoin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
datadir=/var/lib/bitcoind
txindex=1
5 changes: 2 additions & 3 deletions deploy/bitcoind.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ Wants=network-online.target
ConfigurationDirectory=bitcoin
ConfigurationDirectoryMode=0710
ExecStart=/usr/local/bin/bitcoind \
-datadir=/var/lib/bitcoind \
-chain=${CHAIN} \
-txindex
-conf=/etc/bitcoin/bitcoin.conf \
-chain=${CHAIN}
ExecStartPre=/bin/chgrp bitcoin /etc/bitcoin
Group=bitcoin
MemoryDenyWriteExecute=true
Expand Down
2 changes: 2 additions & 0 deletions deploy/setup
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ id --user bitcoin || useradd --system bitcoin
id --user ord || useradd --system ord

cp deploy/bitcoind.service /etc/systemd/system/
mkdir -p /etc/bitcoin
cp deploy/bitcoin.conf /etc/bitcoin/bitcoin.conf
systemctl daemon-reload
systemctl enable bitcoind
systemctl restart bitcoind
Expand Down