From d89bbe0bf6aceebad3b965002e20d557f2aeab23 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 26 Mar 2021 13:51:29 -0700 Subject: [PATCH] fix(debugging): Adding additional debugging info to SLP utils --- src/slp/utils.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/slp/utils.js b/src/slp/utils.js index 29332a2..2ec5d98 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -1098,6 +1098,7 @@ class Utils { * } */ async tokenUtxoDetails (utxos, usrObj = null) { + console.log('Entering tokenUtxoDetails()') try { // Throw error if input is not an array. if (!Array.isArray(utxos)) throw new Error('Input must be an array.') @@ -1156,6 +1157,8 @@ class Utils { } } + console.log('Existing tokenUtxoDetails()') + return outAry } catch (error) { console.log('Error in tokenUtxoDetails()') @@ -1283,6 +1286,7 @@ class Utils { // If the usrObj has a utxoDelay property, then it will delay the loop for // each UTXO by that many milliseconds. async _hydrateUtxo (utxos, usrObj = null) { + console.log('Entering _hydrateUtxo()') try { const decodeOpReturnCache = {} @@ -1502,6 +1506,7 @@ class Utils { } } + console.log('Exiting _hydrateUtxo()') return outAry } catch (error) { console.log('Error in _hydrateUtxo()') @@ -1547,6 +1552,7 @@ class Utils { * true */ async waterfallValidateTxid (txid, usrObj = null) { + console.log('Entering waterfallValidateTxid()') try { // console.log('txid: ', txid) @@ -1636,6 +1642,8 @@ class Utils { return isValid } + console.log('Exiting waterfallValidateTxid()') + // If isValid is still null, return that value, signaling that the txid // could not be validated. return isValid