From 7c425e41836a38f15ce194be3f2dabfc748c5e9d Mon Sep 17 00:00:00 2001 From: nolim1t Date: Sun, 1 Mar 2020 15:12:08 +0700 Subject: [PATCH] Add bitcoin config --- stage2/08-configure-bitcoind/01-run.sh | 4 +++ .../08-configure-bitcoind/files/bitcoin.conf | 30 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 stage2/08-configure-bitcoind/01-run.sh create mode 100644 stage2/08-configure-bitcoind/files/bitcoin.conf diff --git a/stage2/08-configure-bitcoind/01-run.sh b/stage2/08-configure-bitcoind/01-run.sh new file mode 100755 index 0000000..b7c4cb3 --- /dev/null +++ b/stage2/08-configure-bitcoind/01-run.sh @@ -0,0 +1,4 @@ +chmod 644 files/bitcoin.conf +mkdir ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/bitcoin +cp files/bitcoin.conf ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/bitcoin/bitcoin.conf + diff --git a/stage2/08-configure-bitcoind/files/bitcoin.conf b/stage2/08-configure-bitcoind/files/bitcoin.conf new file mode 100644 index 0000000..ef91c15 --- /dev/null +++ b/stage2/08-configure-bitcoind/files/bitcoin.conf @@ -0,0 +1,30 @@ +onion=127.0.0.1:9050 +torcontrol=127.0.0.1:9051 + +server=1 +rest=1 + +; Some Pi optimizations +maxmempool=512 +maxconnections=40 +maxuploadtarget=5000 + +port=8333 +rpcport=8332 + +; Prune it up first +prune=550 +; Temporary solution while we don't have the drives +; txindex=1 + +blockfilterindex=1 +peerbloomfilters=0 +addresstype=bech32 +avoidpartialspends=1 +logips=1 +logtimestamps=0 +logthreadnames=1 +nodebuglogfile=1 + +rpcbind=0.0.0.0 +