Skip to content

Commit

Permalink
Merge pull request #210 from Bitcoin-com/stage
Browse files Browse the repository at this point in the history
Increase slp txid validate
  • Loading branch information
cgcardona authored Jan 28, 2019
2 parents 2112887 + 84d4a7e commit 36a31b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ PORT=3000 BITCOINCOM_BASEURL=http://localhost:3000/api/ RPC_BASEURL=http://local
#### View in browser

Finally open `http://localhost:3000/` and confirm you see the GUI

6 changes: 3 additions & 3 deletions src/routes/v2/slp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,10 @@ async function validateBulk(
}

// Enforce no more than 20 txids.
if (txids.length > 10) {
if (txids.length > 20) {
res.status(400)
return res.json({
error: "Array too large. Max 10 txids"
error: "Array too large. Max 20 txids"
})
}

Expand Down Expand Up @@ -446,7 +446,7 @@ async function validateBulk(
}
}

async function isValidSlpTxid(txid: string) {
async function isValidSlpTxid(txid: string): Promise<boolean> {
let result
try {
result = await validateTx(txid, process.env.SLP_VALIDATE_URL)
Expand Down

0 comments on commit 36a31b5

Please sign in to comment.