Skip to content

Commit

Permalink
Add bitcoin.conf (ordinals#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Oct 3, 2022
1 parent 58e8b9e commit 0846f2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit 0846f2e

Please sign in to comment.