diff --git a/full-service/src/db/txo.rs b/full-service/src/db/txo.rs index af3d34932..b2a766e82 100644 --- a/full-service/src/db/txo.rs +++ b/full-service/src/db/txo.rs @@ -1809,9 +1809,11 @@ impl TxoModel for Txo { .into_boxed() .inner_join(transaction_input_txos::table) .filter( - transaction_logs::submitted_block_index - .is_not_null() - .and(transaction_logs::failed.eq(false)), + transaction_logs::submitted_block_index.is_not_null().and( + transaction_logs::failed + .eq(false) + .and(transaction_logs::finalized_block_index.is_null()), + ), ) .select(transaction_input_txos::txo_id);