From 1690092f65e94c861a1650c985be5975c367fc8f Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Wed, 22 Mar 2023 16:33:33 -0400 Subject: [PATCH] Bring FastSync back until storage volumes work. --- btcpayserver/stub_btcpay_setup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/btcpayserver/stub_btcpay_setup.sh b/btcpayserver/stub_btcpay_setup.sh index ec092a7..9e71d7a 100755 --- a/btcpayserver/stub_btcpay_setup.sh +++ b/btcpayserver/stub_btcpay_setup.sh @@ -59,6 +59,16 @@ export BTCPAY_BASE_DIRECTORY=${REMOTE_HOME} export BTCPAYGEN_EXCLUDE_FRAGMENTS="nginx-https;" export REVERSEPROXY_DEFAULT_HOST="$BTCPAY_USER_FQDN" +if [ "\$NBITCOIN_NETWORK" != regtest ]; then + # run fast_sync if it's not been done before. + if [ ! -f /home/ubuntu/fast_sync_completed ]; then + cd ./contrib/FastSync + ./load-utxo-set.sh + touch /home/ubuntu/fast_sync_completed + cd - + fi +fi + # next we create fragments to customize various aspects of the system # this block customizes clightning to ensure the correct endpoints are being advertised # We want to advertise the correct ipv4 endpoint for remote hosts to get in touch.