[bug] Get only unspent outputs to craft transactions
This commit is contained in:
parent
bf30c0de0c
commit
c18116a846
@ -95,7 +95,7 @@ fn faucet_send(
|
|||||||
|
|
||||||
// We filter out the freezed utxos from available list
|
// We filter out the freezed utxos from available list
|
||||||
let available_outpoints: Vec<(OutPoint, OwnedOutput)> = sp_wallet
|
let available_outpoints: Vec<(OutPoint, OwnedOutput)> = sp_wallet
|
||||||
.get_outputs()
|
.get_unspent_outputs()
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|(outpoint, output)| {
|
.filter_map(|(outpoint, output)| {
|
||||||
if !freezed_utxos.contains(&outpoint) {
|
if !freezed_utxos.contains(&outpoint) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user