Browse Source

Update UTXO Set for FastSync, and fix bug on save utxo

newutxoset
nicolas.dorier 6 years ago
parent
commit
5e44d3626c
  1. 2
      contrib/FastSync/load-utxo-set.sh
  2. 7
      contrib/FastSync/save-utxo-set-in-bitcoind.sh
  3. 2
      contrib/FastSync/save-utxo-set.sh
  4. 27
      contrib/FastSync/sigs/NicolasDorier.utxo-sets.asc
  5. 3
      contrib/FastSync/utxo-sets

2
contrib/FastSync/load-utxo-set.sh

@ -23,7 +23,7 @@ if ! [[ "$NBITCOIN_NETWORK" ]]; then
fi
if ! [[ "$UTXO_DOWNLOAD_LINK" ]]; then
[[ $NBITCOIN_NETWORK == "mainnet" ]] && UTXO_DOWNLOAD_LINK="http://utxosets.blob.core.windows.net/public/utxo-snapshot-bitcoin-mainnet-551636.tar"
[[ $NBITCOIN_NETWORK == "mainnet" ]] && UTXO_DOWNLOAD_LINK="http://utxosets.blob.core.windows.net/public/utxo-snapshot-bitcoin-mainnet-565305.tar"
[[ $NBITCOIN_NETWORK == "testnet" ]] && UTXO_DOWNLOAD_LINK="http://utxosets.blob.core.windows.net/public/utxo-snapshot-bitcoin-testnet-1445586.tar"
fi

7
contrib/FastSync/save-utxo-set-in-bitcoind.sh

@ -25,6 +25,9 @@ fi
cd /data
TAR_NAME="utxo-snapshot-bitcoin-$NBITCOIN_NETWORK-$PRUNED_HEIGHT.tar"
echo "Creating $TAR_NAME..."
tar -cf "$TAR_NAME" "$NETWORK_DIRECTORY/blocks/"
tar -rf "$TAR_NAME" "$NETWORK_DIRECTORY/chainstate/"
echo "Adding $NETWORK_DIRECTORY/blocks/*"
tar -cvf "$TAR_NAME" "$NETWORK_DIRECTORY/blocks/"
echo "Adding $NETWORK_DIRECTORY/chainstate/*"
tar -rvf "$TAR_NAME" "$NETWORK_DIRECTORY/chainstate/"
echo "TAR file created"
exit

2
contrib/FastSync/save-utxo-set.sh

@ -29,7 +29,7 @@ rm /var/lib/docker/volumes/generated_bitcoin_datadir/_data/utxo-snapshot-*
# Run only bitcoind and connect to it
SCRIPT="$(cat save-utxo-set-in-bitcoind.sh)"
cd "`dirname $BTCPAY_ENV_FILE`"
docker-compose -f $BTCPAY_DOCKER_COMPOSE run -e "NBITCOIN_NETWORK=$NBITCOIN_NETWORK" bitcoind bash -c "$SCRIPT"
docker-compose -f $BTCPAY_DOCKER_COMPOSE run --rm -e "NBITCOIN_NETWORK=$NBITCOIN_NETWORK" bitcoind bash -c "$SCRIPT"
btcpay-up.sh
echo "Calculating the hash of the tar file..."

27
contrib/FastSync/sigs/NicolasDorier.utxo-sets.asc

@ -3,19 +3,20 @@ Hash: SHA256
fab994299273080bf7124c8c45c4ada867974ca747900178496a69e450cf713f utxo-snapshot-bitcoin-mainnet-551636.tar
eabaaa717bb8eeaf603e383dd8642d9d34df8e767fccbd208b0c936b79c82742 utxo-snapshot-bitcoin-testnet-1445586.tar
8e18176138be351707aee95f349dd1debc714cc2cc4f0c76d6a7380988bf0d22 utxo-snapshot-bitcoin-mainnet-565305.tar
-----BEGIN PGP SIGNATURE-----
wsFcBAEBCAAQBQJcALGMCRBmGHY+8JGG/gAA0YsQAJgfTLHy/z+5c7pumb7QGl5y
afs7KrDUpc5jM6c6jeaKaysWm/aQmWXYtTYMFeN2+vexVLvbMiYSVMl5ts2zRScl
tY+HQ2aYlUP754S98gjFrWNner5wpREhu+UILtzB79ph/Baw2iOm0NJIsr3SA8B6
VJ/JRRiaG4PW6TNJumiYVRZ7RCx+DnWveq+ombPDrjp7sbABx2s8tyIxFf7IW2wb
bOHA2FNjRu2+gd6PNVlNYVX+i0tx+q8f7yuCOxxSux5DvfK5p+TE2XqWoc3TbtqZ
9SXKeoUVDvhWjY7nH8D0LehYobh0LzCIpdsm1wqDpR3DOMlNAY+5OHA0+4BAoY+K
hPOyWA5TWLrlC6yMuz6ttVFvjOHGd7HwLqlU3NU4aj9oxLIjaHHHOcxvf+v0GrvL
QTd7YfyFeEpMQjwK/ueYlswxRqMHMFVLg/F0sAcwJ4W3F9yakz8mS341IDSWPoUR
Kc1KArFH4SqW2oc3ChzFwU/Om7rv5rZelJRRTzW8lJZFPysiLtUoEe1PeiYiikCL
Am40XX62EF+MG+TKQkYkTGlSPjNEE+ko9cQcAzMWVz1BZCUjcJH+dI/7uNsMOtp3
y1ytX+Asv2KiLGAKzQvKBIrJzYuwuStVxUIZguJpb20bo8CkLOUKORjwsiQ4ktna
gHoN2GLHvDzOq4cixubg
=65Dw
wsFcBAEBCAAQBQJcfMXICRBmGHY+8JGG/gAA3u4QALOWNroLjaLsX6WqF6eqYEL0
PUZe7EFq/+ADGHuERFfew0Y8M2kySCUNbgh3+ih0Qp8+IUoSpx1KAxLfQrvzOLRC
N0O01OWtFJVBvb+JKqjwYFipmAoxBqSW1RvHJ6ZXPGzlGiHmOqLiW7XjegQ0ZHSJ
3dK+F9EIvFnglpawqrUtFuqEaYzBoi/dI2b9LCScnOZ/VLfsuIRfR8ffpdzE42ch
Tudr7pi0kf52UDGky9nm3kqbYI2T7Wrqu761fLqKhDDpIjq1IIPij1XEaFzVqb6/
Z+uo/FOa69DIsY1ijUBvFuBK3ep4Ge6AiAIiyuzjy1CoFAq7kPozhOLpveLeZR/m
NULTTJ3ZuD4avh4MLzrLqBuyvsXPI66/kHBgS64bF/NbQ3sfsfAdFceLWP2txL6A
M7OYcjrYATD1ivgAWde1LG6X0tZVI4jaic9JG4HszB49UieaJOSqjw4s8VLlI6e+
f+oPSNE5JEZeRX/+P43GjHv2xZEU0aWGcrOdumL/LisfPuahnWbntrhvVM/7xlum
CZWyiH8XOCNLgwUX+mfcxqseu4t/C57I8XT/SuFNVDWRiEYBBNJ9cb+ThoIKgjMi
TTltY28Ko/vDqivlacPiyBguSoD8KgNOEvYs2CBEdO/1MK8VlLcaopx2TMRpDoYC
eppW98Av+MZp03l4PbFi
=jUwt
-----END PGP SIGNATURE-----

3
contrib/FastSync/utxo-sets

@ -1,2 +1,3 @@
fab994299273080bf7124c8c45c4ada867974ca747900178496a69e450cf713f utxo-snapshot-bitcoin-mainnet-551636.tar
eabaaa717bb8eeaf603e383dd8642d9d34df8e767fccbd208b0c936b79c82742 utxo-snapshot-bitcoin-testnet-1445586.tar
eabaaa717bb8eeaf603e383dd8642d9d34df8e767fccbd208b0c936b79c82742 utxo-snapshot-bitcoin-testnet-1445586.tar
8e18176138be351707aee95f349dd1debc714cc2cc4f0c76d6a7380988bf0d22 utxo-snapshot-bitcoin-mainnet-565305.tar
Loading…
Cancel
Save