bchd-explorer
bchd-explorer copied to clipboard
Optimize fetching of blockchain data and update package-lock for node LTS
This PR cleans up quite a few things.
- Update package-lock to work with latest Node LTS (v16).
- Optimizes fetching of blocks/addresses/transactions so they are only fetched once. SearchBCHD() was called multiple times in the old code path.
- Adds debug method which can be used to log to console.
- Ran main BCHDExplorer.vue through a JS formatter.
- Updated polling interval for basic blockchain info to 60 seconds (from 5 seconds).
- Simplifies testnet detection.