HomePhabricator

[explorer] Fix address conversion on testnet

Description

[explorer] Fix address conversion on testnet

Summary: When visiting an address page on the testnet explorer, the legacy address doesn't use the testnet network. This diff fixes this bug.

Test Plan:

cd web/explorer/explorer-exe
cp config.dist.toml config.toml

Edit config.toml to add:

chain = "testnet"

And change the chronik server to chronik-testnet.fabien.cash.
Then:

cargo run

Open a address page and check the legacy address is correct.

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D17869

Details

Provenance
FabienAuthored on Fri, Mar 28, 09:16
FabienPushed on Fri, Mar 28, 14:25
Reviewer
Restricted Project
Differential Revision
D17869: [explorer] Fix address conversion on testnet
Parents
rABCfda261378276: doc: Improve comments describing setBlockIndexCandidates checks
Branches
Unknown
Tags
Unknown