Skip to content

Commit 2ec2529

Browse files
committed
fix: only check success txs
1 parent acbafd0 commit 2ec2529

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/neuron-wallet/src/services/tx/indexer-transaction.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ import TransactionEntity from 'database/chain/entities/transaction'
33
import Utils from 'services/sync/utils'
44
import InputEntity from 'database/chain/entities/input'
55
import OutputEntity from 'database/chain/entities/output'
6+
import { TransactionStatus } from 'types/cell-types'
67
import { OutputStatus } from './params'
78

89
export default class IndexerTransaction {
910
public static txHashes = async () => {
1011
const txs = await getConnection()
1112
.getRepository(TransactionEntity)
1213
.createQueryBuilder('tx')
13-
.where(`tx.confirmed = false`)
14+
.where({
15+
confirmed: false,
16+
status: TransactionStatus.Success,
17+
})
1418
.getMany()
1519

1620
return txs

0 commit comments

Comments
 (0)