Skip to content

Switch dead explorer links to x.taostats.io #1583

@mogmachine

Description

@mogmachine

Describe the bug

I cannot create a branch to do this as i don't have permissions ,so rather than submet file changes directly.

bittensor/init.py :: 107-111 - replace with

__network_explorer_map__ = {
    "local": "https://x.taostats.io",
    "endpoint": "https://x.taostats.io",
    "finney": "https://x.taostats.io",
}

Then

bittensor/utlis/__init__.py :: 167-173  - replace with

    if explorer_root_url is not None:
        # We are on a known network.
        explorer_url = "{root_url}/search?query={block_hash}".format(
            root_url=explorer_root_url, block_hash=block_hash
        )

    return explorer_url

To Reproduce

This will no longer take you to a 502 bad gateway page because old explorer is dead.

Expected behavior

This will take you to taostats, search the block hash and redirect you to the block page directly, eg: https://x.taostats.io/block/1732715

Screenshots

No response

Environment

bt 6.2.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions