Open georgengelmann opened 4 years ago
Hello ! You can show your bitcore.config.json file ?
All you have to do with the idea is to remove it from the file:
"BTC": {
"mainnet": {
"chainSource": "p2p",
"trustedPeers": [
{
"host": "127.0.0.1",
"port": 20008
}
],
"rpc": {
"host": "127.0.0.1",
"port": 20009,
"username": "username",
"password": "password"
}
},
"regtest": {
"chainSource": "p2p",
"trustedPeers": [
{
"host": "127.0.0.1",
"port": 20020
}
],
"rpc": {
"host": "127.0.0.1",
"port": 20021,
"username": "username",
"password": "password"
}
}
},
My file looks like this
{
"bitcoreNode": {
"chains": {
"BCH": {
"mainnet": {
"chainSource": "p2p",
"trustedPeers": [
{
"host": "192.168.211.4",
"port": 8333
},
{
"host": "192.168.211.3",
"port": 8333
}
],
"rpc": {
"host": "192.168.211.4",
"port": 8332,
"username": "user",
"password": "password"
}
},
"testnet": {
"chainSource": "p2p",
"trustedPeers": [
{
"host": "192.168.211.4",
"port": 18333
},
{
"host": "192.168.211.3",
"port": 18333
}
],
"rpc": {
"host": "192.168.211.4",
"port": 18332,
"username": "user",
"password": "password"
}
}
}
}
}
}
But when I visit https://explorer.electroncash.de the default currency is BTC in the user interface - just showing an error
I’ll check it at home now and will return with an answer
I made a couple of attempts and the same situation I think that there’s no way to remove it, it's like ethereum classic without ethereum
the default code tries to connect to the localhost: 8333 if it is not explicitly specified in the configuration file
if you really want it, you can certainly get around it, but I think it's worth it .
I think the issue is on the insight side it likely has BTC hardcoded in the chain/network dropdown.
The rest are populated from making a request to your configured bitcore-node. You should be able to remove the BTC line from that dropdown.
We can look into this, it is a bug.
@micahriggan In which file(s) in the insight package must the BTC line removed from dropdown?
I want to run a blockchain explorer for BCH mainnet and testnet only, but BTC is visible in the menu options and it's the default currency when I visit the page (I have not configured a BTC node)
https://i.imgur.com/KrbEXTs.png