mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a515334a94 | ||
|
|
6be1369182 | ||
|
|
6455522ba6 | ||
|
|
d9a8999239 | ||
|
|
ae0f556f75 |
Generated
+911
-2529
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -28,7 +28,7 @@
|
||||
"node": ">=10.15.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@psf/bch-js": "^3.7.1",
|
||||
"@psf/bch-js": "^4.0.0",
|
||||
"apidoc": "^0.23.0",
|
||||
"axios": "^0.19.0",
|
||||
"bitcore-lib-cash": "^8.20.3",
|
||||
@@ -75,7 +75,7 @@
|
||||
"proxyquire": "^2.1.0",
|
||||
"request": "^2.88.0",
|
||||
"request-promise": "^4.2.2",
|
||||
"semantic-release": "^17.0.0",
|
||||
"semantic-release": "^17.3.0",
|
||||
"sinon": "^9.0.0",
|
||||
"standard": "^14.3.1",
|
||||
"typescript": "^3.1.4"
|
||||
|
||||
+23
-1
@@ -1040,6 +1040,15 @@ class Slp {
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// Corner case: No results were returned from SLPDB. Mark each entry
|
||||
// as 'null'
|
||||
for (let i = 0; i < txids.length; i++) {
|
||||
formattedTokens.push({
|
||||
txid: txids[i],
|
||||
valid: null
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Catch a corner case of repeated txids. SLPDB will remove redundent TXIDs,
|
||||
@@ -1423,7 +1432,7 @@ class Slp {
|
||||
|
||||
let formattedTokens = []
|
||||
|
||||
// Combine the arrays. Why? Generally there is nothing in the u array.
|
||||
// Combine the confirmed and unconfirmed collections.
|
||||
const concatArray = tokenRes.data.c.concat(tokenRes.data.u)
|
||||
|
||||
const tokenIds = []
|
||||
@@ -1457,6 +1466,15 @@ class Slp {
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// Corner case: No results were returned from SLPDB. Mark each entry
|
||||
// as 'null'
|
||||
for (let i = 0; i < txids.length; i++) {
|
||||
formattedTokens.push({
|
||||
txid: txids[i],
|
||||
valid: null
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Catch a corner case of repeated txids. SLPDB will remove redundent TXIDs,
|
||||
@@ -1476,6 +1494,10 @@ class Slp {
|
||||
formattedTokens = newOutput
|
||||
}
|
||||
|
||||
// console.log(
|
||||
// `formattedTokens: ${JSON.stringify(formattedTokens, null, 2)}`
|
||||
// )
|
||||
|
||||
// Put the output array in the same order as the input array.
|
||||
const outAry = []
|
||||
for (let i = 0; i < txids.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user