janoside / btc-rpc-explorer

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

backward compatibility with old nodes #491

Closed jaonoctus closed 1 year ago

jaonoctus commented 2 years ago

I have some really old bitcoin nodes (eg v0.12) and I could not run the explorer on top of it

pointbiz commented 2 years ago

Maybe not the answer you are expecting but did you try version 2.2?

Version 3+ has changes that support rpc changes in Core that occurred after version 0.21 of Core.

jaonoctus commented 2 years ago

@pointbiz np, thank you for replying!

The node is still in IBD. I remember that the old version wont load until the Core get synced or something like that, right?

2022-11-26T06:42:14.360Z btcexp:app Starting BTC RPC Explorer, v2.2.0 at 0.0.0.0:3002/mainnet/
2022-11-26T06:42:14.361Z btcexp:app Connecting to RPC node at 172.12.0.10:8332
2022-11-26T06:42:14.374Z btcexp:app Verifying RPC connection...
2022-11-26T06:42:14.375Z btcexp:app Loading mining pools config
2022-11-26T06:42:21.517Z btcexp:error Error 9u4278t5h7rfhgf: Error: RpcError: type=failure-01, json: {"userData":{"error":{"cause":{"code":"ESOCKETTIMEDOUT","connect":false},"isOperational":true,"code":"ESOCKETTIMEDOUT","connect":false},"request":"getblockchaininfo"}}, userData: [object Object] (json: {"error":{"cause":{"code":"ESOCKETTIMEDOUT","connect":false},"isOperational":true,"code":"ESOCKETTIMEDOUT","connect":false},"request":"getblockchaininfo"})
2022-11-26T06:42:21.518Z btcexp:error Error 329u0wsdgewg6ed: Error: RpcError: type=failure-01, json: {"userData":{"error":{"cause":{"code":"ESOCKETTIMEDOUT","connect":false},"isOperational":true,"code":"ESOCKETTIMEDOUT","connect":false},"request":"getblockchaininfo"}}
janoside commented 1 year ago

Cleaning up old issues. If you're still having this problem using the latest code (3.4-beta or greater), feel free to reply.