Magickbase / ckb-explorer-public-issues

CKB Explorer Issues
https://explorer.nervos.org/
3 stars 2 forks source link

Transactions repeated on xUDT/Inscription page when filtered by BTC address #610

Closed Keith-CY closed 2 months ago

Keith-CY commented 5 months ago

Page: https://pudge.explorer.nervos.org/xudt/0x7337d2075479d5c6789564516be1db11478e1d3ca70ad88050fe0bf3ff05acc2?filter=tb1ppavy0ekqk3mur37zvhqje0smauqa523tnrccynzlya5hkxy75nrqcfntth

image

This is probably caused by multiple CKB addresses are mapped to the same BTC address, and these CKB addresses are revealed in the same transaction, so this transaction is loaded multiple times by different CKB addresses.

E.g. CKB Addresses A, B, C are all mapped to BTC address D, when the transaction list is filtered by D, it's actually filtered by A | B | C. If there is a transaction like

A -> C
B -> C

It will be indexed by A, B, C, respectively, thus 3 transactions are returned.

rabbitz commented 5 months ago

https://github.com/nervosnetwork/ckb-explorer/pull/1764

Keith-CY commented 5 months ago

Is this fix ready for testnet?

rabbitz commented 5 months ago

Is this fix ready for testnet?

It has been deployed to the testnet.

FrederLu commented 5 months ago

Verified.