fix(utxo.get()): Handling corner-case when SLP indexer is not returning data

This commit is contained in:
Chris Troutner
2025-06-29 14:36:44 -07:00
parent 01625abb37
commit 4260a74d91
+3 -1
View File
@@ -153,7 +153,9 @@ class UTXO {
// the indexer.
const txData = await this.psfSlpIndexer.tx(thisUtxo.tx_hash)
// console.log(`txData: ${JSON.stringify(txData, null, 2)}`)
if (txData.txData.isValidSlp === null) {
// txData.txData === undefined if the SLP indexer is syncing.
if (!txData.txData || txData.txData.isValidSlp === null) {
thisUtxo.isSlp = null
} else {
thisUtxo.isSlp = false