Skip to content

Commit 30cc917

Browse files
committed
insert correct hash for tx inputs
1 parent 80cc1e3 commit 30cc917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swapd/src/postgresql/chain_repository.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl chain::ChainRepository for ChainRepository {
176176
let mut txns: Vec<_> = tx_outputs
177177
.iter()
178178
.map(|o| o.utxo.outpoint.txid.to_string())
179-
.chain(tx_inputs.iter().map(|i| i.outpoint.txid.to_string()))
179+
.chain(tx_inputs.iter().map(|i| i.spending_tx.to_string()))
180180
.collect();
181181
txns.dedup();
182182
let block_hashes: Vec<_> = txns.iter().map(|_| block.hash.to_string()).collect();

0 commit comments

Comments
 (0)