Skip to content

add explorer urls to init and check before print#1033

Closed
camfairchild wants to merge 1 commit intofinneyfrom
only_explorer_if_known_network
Closed

add explorer urls to init and check before print#1033
camfairchild wants to merge 1 commit intofinneyfrom
only_explorer_if_known_network

Conversation

@camfairchild
Copy link
Contributor

This PR changes the explorer url output to only output when the network explorer is known in our map of explorer urls

Comment on lines +1135 to +1136
explorer_root_url = bittensor.__network_explorer_map__[self.network]
explorer_url = "{root_url}/#/explorer/query/{block_hash}".format( root_url=explorer_root_url, block_hash = block_hash )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about testing this using different network_explorer maps? So we test what we're doing here

@camfairchild camfairchild changed the base branch from finney to nobunaga January 2, 2023 18:20
@camfairchild camfairchild changed the base branch from nobunaga to finney January 2, 2023 18:20
@camfairchild
Copy link
Contributor Author

Close in favour of #1037

@camfairchild camfairchild deleted the only_explorer_if_known_network branch February 7, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants