From 60e0d7df9c712765fca8601d61df992e6e119c27 Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Mon, 19 Feb 2024 14:20:14 +0700 Subject: [PATCH] update readme and add default value for testnet variable --- README.md | 1 + src/scripts/seed-blockchain-data/update-mining-info.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96cada7..eaff92b 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ yarn db:migrate - [Node.js](https://nodejs.org/en/) >= 14 - [Yarn](https://classic.yarnpkg.com/lang/en/) >=1.22 +- [Redis](https://redis.io/) - `pasteld` node running and operational ### Prepare dotenv diff --git a/src/scripts/seed-blockchain-data/update-mining-info.ts b/src/scripts/seed-blockchain-data/update-mining-info.ts index 29269f1..b9917c7 100644 --- a/src/scripts/seed-blockchain-data/update-mining-info.ts +++ b/src/scripts/seed-blockchain-data/update-mining-info.ts @@ -58,7 +58,7 @@ export async function updateStatsMiningInfo( networksolps: miningInfoRespone.networksolps, networkhashps: miningInfoRespone.networkhashps, pooledtx: result.size || 0, - testnet: miningInfoRespone.testnet, + testnet: miningInfoRespone?.testnet || 0, chain: miningInfoRespone.chain, generate, timestamp: new Date().getTime(),