Compare commits

...
2 Commits
Author SHA1 Message Date
Chris Troutner fdff4a1afb Merge pull request #71 from Permissionless-Software-Foundation/ct-unstable
fix(tokenUtxoDetails): Fixing bug with fallback validators
2020-12-13 06:25:10 -08:00
Chris Troutner 12701cf3dc fix(tokenUtxoDetails): Fixing bug with fallback validators 2020-12-13 06:20:51 -08:00
+16 -9
View File
@@ -1294,10 +1294,13 @@ class Utils {
// If not in the cache, try the general SLPDB.
if (isValid == null) {
isValid = await this.validateTxid(utxo.txid)
isValid = isValid[0].valid
// Save the result to the local cache.
cachedTxValidation[utxo.txid] = isValid
if (isValid !== null) {
isValid = isValid[0].valid
// Save the result to the local cache.
cachedTxValidation[utxo.txid] = isValid
}
}
// console.log(`isValid: ${JSON.stringify(isValid, null, 2)}`)
@@ -1334,10 +1337,12 @@ class Utils {
// )}`
// )
isValid = isValid[0].valid
if (isValid !== null) {
isValid = isValid[0].valid
// Save the result to the local cache.
cachedTxValidation[utxo.txid] = isValid
// Save the result to the local cache.
cachedTxValidation[utxo.txid] = isValid
}
}
}
@@ -1348,10 +1353,12 @@ class Utils {
// `slp-validate isValid: ${JSON.stringify(isValid, null, 2)}`
// )
isValid = isValid.isValid
if (isValid !== null) {
isValid = isValid.isValid
// Save the result to the local cache.
cachedTxValidation[utxo.txid] = isValid
// Save the result to the local cache.
cachedTxValidation[utxo.txid] = isValid
}
}
// console.log(`isValid: ${JSON.stringify(isValid, null, 2)}`)