]> Untitled Git - bdk/commit
fix(electrum): Fix `fetch_prev_txout`
authorvalued mammal <valuedmammal@protonmail.com>
Tue, 14 May 2024 14:43:19 +0000 (10:43 -0400)
committervalued mammal <valuedmammal@protonmail.com>
Tue, 14 May 2024 14:50:02 +0000 (10:50 -0400)
commitaf15ebba94f6d96a4d266fbbdee7c49150f80b96
tree5649b6d13cfda956cfb39fc3d448ebcd7908e4f0
parent7607b4928321d83af96236ec666408ce03e7de70
fix(electrum): Fix `fetch_prev_txout`

Previously we inserted every TxOut of a previous tx
at the same outpoint, which is incorrect because an outpoint
only points to a single TxOut. Now just get the TxOut
corresponding to the txin prevout and insert it with
its outpoint.
crates/electrum/src/electrum_ext.rs