We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
KeychainTxOutIndex::index_tx
1 parent 639d735 commit 0017037Copy full SHA for 0017037
crates/chain/src/keychain/txout_index.rs
@@ -154,8 +154,9 @@ impl<K: Clone + Ord + Debug> Indexer for KeychainTxOutIndex<K> {
154
155
fn index_tx(&mut self, tx: &bitcoin::Transaction) -> Self::ChangeSet {
156
let mut changeset = ChangeSet::<K>::default();
157
+ let txid = tx.compute_txid();
158
for (op, txout) in tx.output.iter().enumerate() {
- changeset.append(self.index_txout(OutPoint::new(tx.compute_txid(), op as u32), txout));
159
+ changeset.append(self.index_txout(OutPoint::new(txid, op as u32), txout));
160
}
161
changeset
162
0 commit comments