From 314040453b07a0e9faed971794d0465746059ecf Mon Sep 17 00:00:00 2001 From: josephroyking Date: Wed, 25 Nov 2020 15:31:59 -0800 Subject: [PATCH] Support unconfirmed slp txs --- src/routes/v3/slp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/v3/slp.js b/src/routes/v3/slp.js index 5564bd9..97a7e1f 100644 --- a/src/routes/v3/slp.js +++ b/src/routes/v3/slp.js @@ -1251,7 +1251,7 @@ class Slp { const tokenRes = await _this.axios.request(opt) // console.log(`tokenRes: ${util.inspect(tokenRes)}`) - if (tokenRes.data.c.length === 0) { + if (tokenRes.data.c.length === 0 && tokenRes.data.u.length === 0) { res.status(404) return res.json({ error: 'TXID not found' }) } @@ -1459,7 +1459,7 @@ class Slp { tokenIdHex: transaction.slp.detail.tokenIdHex, sendOutputs: sendOutputs, sendInputsFull: sendInputs, - sendOutputsFull: transaction.slp.detail.outputs, + sendOutputsFull: transaction.slp.detail.outputs }, tokenIsValid: transaction.slp.valid }