From 767a0fd38bfcac5dbfee8d953a9d30c71909c6bf Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sun, 15 May 2022 07:51:37 -0700 Subject: [PATCH] Minor clarification to comment --- src/routes/v5/psf-slp-indexer.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/v5/psf-slp-indexer.js b/src/routes/v5/psf-slp-indexer.js index 2baf938..2d3a747 100644 --- a/src/routes/v5/psf-slp-indexer.js +++ b/src/routes/v5/psf-slp-indexer.js @@ -315,8 +315,9 @@ class PsfSlpIndexer { // console.log(`mdaTxs: ${JSON.stringify(mdaTxs, null, 2)}`) let data = false - // Maps each transaction of the mutableDataAddr - // if finds an OP_RETURN decode is and closes the loop + // Maps each transaction of the mutableDataAddr. + // If it finds an OP_RETURN, decode it. Exit the loop once the first + // valid mutable data entry is found. // Start with the newest TXID entry and scan the history to find the first // entry with an IPFS CID. for (let i = mdaTxs.length - 1; i > -1; i--) { @@ -345,7 +346,7 @@ class PsfSlpIndexer { // Skip entry if it was not made by the MDA private key. if (mutableDataAddr !== vinAddress) { - console.log('Data is not generated by MDA') + console.log('Data is not generated by MDA, skipping.') data = false continue }