ping-pub / explorer

A light explorer for Cosmos-based Blockchains.
https://ping.pub
GNU General Public License v2.0
328 stars 1.04k forks source link

Followed README but no data showing for my chain #149

Open njmurarka opened 2 years ago

njmurarka commented 2 years ago

I am trying to run my own instance of the explorer.

I configured it all according to the docs, unless I missed something.

First of all, I do not have a mainnet. So if I do not put a config in src/chains/mainnet, it seems my network does not even show up. So what do I do here -- put in a bogus mainnet entry?

Secondly, for the testnet version, I am not seeing any data showing for my chain. All empty.

Here is my bluzelle.json file in src/chains/testnet:

{
    "chain_name": "bluzelle",
    "api": ["http://localhost:1327"], 
    "rpc": ["http://localhost:26667"],
    "sdk_version": "0.42.6",
    "coin_type": "483",
    "min_tx_fee": "800",
    "assets": [{
        "base": "ubnt",
        "symbol": "BNT",
        "exponent": "6",
        "coingecko_id": "bluzelle", 
        "logo": "https://dl.airtable.com/.attachments/e54f814bba8c0f9af8a3056020210de0/2d1155fb/cosmos-hub.svg"
    }],
    "addr_prefix": "bluzelle",
    "logo": "https://dl.airtable.com/.attachments/e54f814bba8c0f9af8a3056020210de0/2d1155fb/cosmos-hub.svg"
}

Is there some way to see the logs of why this is not working?

liangping commented 2 years ago

Can you put config file to mainnet directory

njmurarka commented 2 years ago

Yep, shows up if I put a config file in the mainnet directory. So I need to have an entry there even if I have no mainnet?

Which config file is used when I goto the UI in the browser then? How do I switch over to see the testnet and not the mainnet?

Thanks.

liangping commented 2 years ago

You need set a domain starts with testnet.*.*

njmurarka commented 2 years ago

Sorry, but I do not understand.

Set the domain for what part, to start with testnet..? Are you referring to the API endpoint for my testnet chain has to start with testnet? As in, testnet.bar.com? Is that a requirement for a testnet to appear?

Also, if I do that, how do I actually navigate in the web app to see the testnet then? I do not see a button anywhere to view testnet.

liangping commented 2 years ago

testnet.abc.com will switch to testnet mode where configs are loaded from testnet directory

wildcommunist commented 2 years ago

This has to be an option. Using testnet as a prefix does not sit well with everyone

njmurarka commented 2 years ago

testnet.abc.com will switch to testnet mode where configs are loaded from testnet directory

Sorry but what will switch to testnet mode? Are you saying PingPub will ONLY display the testnet info, if the testnet-prefixed domain is provided in the config? I am still unclear here, as there is no way in PingPub to select if I want to see mainnet or testnet -- how do I select?

Indeed, this should be an option -- setting the domain and then having that magically make the testnet appear seems very wrong, not to mention I don't see this documented anywhere -- tribal knowledge?

liangping commented 2 years ago

Are you saying PingPub will ONLY display the testnet info, if the testnet-prefixed domain is provided in the config? I am still unclear here, as there is no way in PingPub to select if I want to see mainnet or testnet -- how do I select?

yeah. testnet domain enable configurations for testnet