Bump mempool to v2.1.2, use SSD for mempool cache data (#2014)

This commit is contained in:
wiz 2021-03-19 05:25:00 +09:00 committed by GitHub
parent 6bce550ea7
commit 5d462fa261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# https://github.com/mempool/mempool
pinnedVersion="v2.0.1"
pinnedVersion="v2.1.2"
# command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
@ -174,6 +174,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
"BACKEND": "electrum",
"HTTP_PORT": 8999,
"API_URL_PREFIX": "/api/v1/",
"CACHE_DIR": "/mnt/hdd/app-storage/mempool/cache",
"POLL_RATE_MS": 2000
},
"CORE_RPC": {
@ -183,8 +184,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
"ELECTRUM": {
"HOST": "127.0.0.1",
"PORT": 50002,
"TLS_ENABLED": true,
"TX_LOOKUPS": false
"TLS_ENABLED": true
},
"DATABASE": {
"ENABLED": true,
@ -204,6 +204,9 @@ EOF
sudo chown mempool:mempool /home/mempool/mempool/backend/mempool-config.json
cd /home/mempool/mempool/frontend
sudo mkdir -p /mnt/hdd/app-storage/mempool/cache
sudo chown mempool:mempool /mnt/hdd/app-storage/mempool/cache
sudo mkdir -p /var/www/mempool
sudo rsync -av --delete dist/mempool/ /var/www/mempool/
sudo chown -R www-data:www-data /var/www/mempool