[bug] Get only unspent outputs to craft transactions

This commit is contained in:
Sosthene 2025-06-21 13:11:50 +02:00 committed by Nicolas Cantu
parent bf30c0de0c
commit c18116a846

View File

@ -95,7 +95,7 @@ fn faucet_send(
// We filter out the freezed utxos from available list
let available_outpoints: Vec<(OutPoint, OwnedOutput)> = sp_wallet
.get_outputs()
.get_unspent_outputs()
.iter()
.filter_map(|(outpoint, output)| {
if !freezed_utxos.contains(&outpoint) {