Files
purple-explorer/package.json
T
Joe Uhren 454fb0a7d7 Fixed multi-threaded sync + related improvements
-The block_parallel_tasks feature has been improved and fixed so that it is now safe to cancel (Ctrl+C) or kill (kill cmd not kill -9) the task and resume the sync later without missing transactions. The new block_parallel_tasks default is 8 threads which seems to be the sweet spot for any type of cpu
-Numerous improvements to the benchamark script to utilize new benchmark settings, auto-add credentials to the benchmark database, reuse the same sync code as the regular block sync instead of using a copy of the code and more
-Added a new cmd to run the benchmark script `npm run benchmark`
-README updated to include the new benchmark script instrutions + include multi-threaded sync as a feature
2025-01-01 19:20:13 -07:00

56 lines
2.1 KiB
JSON

{
"name": "explorer",
"version": "1.102.0",
"private": true,
"scripts": {
"start": "node --stack-size=10000 ./bin/cluster",
"stop": "node ./scripts/stop_explorer.js",
"start-instance": "npm run prestart && node --stack-size=10000 ./bin/cluster 1",
"start-forever": "npm run prestart \"forever production\"",
"stop-forever": "forever stop \"explorer\"",
"reload-forever": "forever restart \"explorer\"",
"start-pm2": "npm run prestart \"pm2 production\"",
"start-pm2-debug": "npm run prestart \"pm2 development\" && pm2 logs",
"stop-pm2": "pm2 stop explorer",
"reload-pm2": "pm2 reload explorer",
"test": "node ./node_modules/jasmine/bin/jasmine.js test/*Spec.js",
"prestart": "node ./scripts/prestart.js",
"sync-blocks": "node ./scripts/sync.js index update",
"sync-markets": "node ./scripts/sync.js market",
"sync-peers": "node ./scripts/sync.js peers",
"sync-masternodes": "node ./scripts/sync.js masternodes",
"check-blocks": "node ./scripts/sync.js index check",
"reindex": "node ./scripts/sync.js index reindex",
"reindex-rich": "node ./scripts/sync.js index reindex-rich",
"reindex-txcount": "node ./scripts/sync.js index reindex-txcount",
"reindex-last": "node ./scripts/sync.js index reindex-last",
"create-backup": "node ./scripts/create_backup.js",
"restore-backup": "node ./scripts/restore_backup.js",
"delete-database": "node ./scripts/delete_database.js",
"update-explorer": "node ./scripts/update_explorer.js",
"benchmark": "node ./scripts/benchmark.js"
},
"dependencies": {
"async": "^3.2.4",
"bad-words": "^4.0.0",
"body-parser": "^1.20.0",
"cookie-parser": "^1.4.6",
"debug": ">=4.3.4",
"express": ">=4.18.1",
"intl": "^1.2.5",
"jsonminify": "^0.4.2",
"mongodb": "^6.1.0",
"mongoose": "^8.0.3",
"morgan": ">=1.10.0",
"postman-request": "^2.88.1-postman.31",
"pug": "~3.0.2",
"qr-image": "^3.2.0",
"sass": "^1.52.3",
"serve-favicon": "^2.5.0"
},
"devDependencies": {
"forever": "^4.0.3",
"jasmine": ">=4.2.0",
"pm2": "^5.2.0"
}
}