trezor / blockbook

:blue_book: Trezor address/account balance backend
https://trezor.io
GNU Affero General Public License v3.0
647 stars 644 forks source link

Spending URL falsely showing found if the output is not spent but another output in the tx is #1029

Open ynohtna92 opened 7 months ago

ynohtna92 commented 7 months ago

The spending URL will falsely showing Found even if the output is not spent but another one is of the same tx.

Not sure if this is intentional but it is misleading when using the /:vout: on the url.

Scenario

I have a tx with 4 utxos, 0, 1 and 2 are spent but 3 isn't.

https://ltc1.trezor.io/spending/:hash:/1

Returns: <a href="/tx/:hash:">Found</a>.

https://ltc1.trezor.io/spending/:hash:/3

Also returns <a href="/tx/:hash:">Found</a>. even if the output is not spent.