HomePhabricator

[explorer] Don't fail to render invalid token txs with non existing token id

Description

[explorer] Don't fail to render invalid token txs with non existing token id

Summary:
The tx 9f938f1c670fbcee7980c53d7b5a059ab64f5c93dc8290a8d10068b6dd696316 is an invalid mint vault mint tx with missing genesis. The explorer currently tries to retrieve the token from the token id, which doesn't exists and so it returns an error. Handle this case instead so we can still show transaction data.
Note that the rendered tx is not very good. Chronik correctly decoded that this is a SLPv2 invalid transaction but because of the template this data is not shown in the explorer page. This can be improved but will be done in another diff.

Depends on D17474 for the preview.

Test Plan: cargo run and open the tx page then the block containing that tx (000000000000000014a1f6b82d89fdd65339a0e6a263ac052bdf03285b736bea)

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
FabienAuthored on Mon, Jan 6, 10:55
FabienPushed on Tue, Jan 7, 11:19
Reviewer
Restricted Project
Differential Revision
D17470: [explorer] Don't fail to render invalid token txs with non existing token id
Parents
rABC6a03426ab8b4: [ecash-herald, Cashtab, explorer] chronik back to native1
Branches
Unknown
Tags
Unknown