The explorer is currently hard-coded to use the ecash: prefix. This diffs adds on optional chain parameter to the config.toml that can be set to "testnet" to use the ectest prefix instead.
Depends on D14450 for the search bar to work.
Differential D14451
[explorer] Add test chains address support to the explorer Fabien on Sep 5 2023, 19:52. Authored by Tags None Subscribers None
Details
The explorer is currently hard-coded to use the ecash: prefix. This diffs adds on optional chain parameter to the config.toml that can be set to "testnet" to use the ectest prefix instead. Depends on D14450 for the search bar to work. cd explorer-server && cargo test Add chain: "testnet" to the config.toml file, then cargo run. Check the addresses are now displayed using the ectest: prefix. Navigate through the transaction and address pages, and use the search bar to check it works as expected. Try again with a wrong chain name, check that cargo run aborts with a meaningful error message.
Diff Detail
Event Timeline
|