janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.53k stars 1.15k forks source link

UI crashes when running explorer with local reg test network #638

Open gdsoumya opened 5 months ago

gdsoumya commented 5 months ago

Describe the bug

The UI is crashing with some error regarding halving calculation when the explorer is configured to run with local regtest network.

Environment (please complete the following information):

Configuration file content

Please include the content from the following files. BE SURE TO MODIFY YOUR CREDENTIALS BEFORE SUBMITTING!!!

[regtest] rpcbind=0.0.0.0


- .env

BTCEXP_HOST=0.0.0.0 BTCEXP_BITCOIND_URI=bitcoin://:@127.0.0.1:18443?timeout=10000 BTCEXP_BASIC_AUTH_PASSWORD=***



**To Reproduce**

Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Screenshots or Log Output**

![image](https://github.com/janoside/btc-rpc-explorer/assets/44349253/df8effee-dca3-48e7-ab80-ea9b64afdff5)

**Additional context**

Initially it was running fine but after about 24 hours when I wen back to the explorer I see this issue. I suspect that it's not able to calculate the halving for the local network as the block speed etc. isn't uniform and much quicker than normal bitcoin chain (10seonds). A quick fix would be to disable the halving calc when running local testnets, not sure if that's already available to configure in the env.

It's just the home page that's crashing other pages like block view etc. is still working fine
KamPuc86zg commented 4 months ago

19BY2-VitWK

Baza58(P2PKH)

Adres Bitcoina

19BY2XCgbDe6WtTVbTyzM9eR3LYr6VitWK

Saldo Bitcoina

0,51458462 23 137,55 dolarów