From fe4ee07e492ad2c3119db9ac447d5afaf56eaefc Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 26 Jan 2019 08:20:28 +0900 Subject: [PATCH 01/11] Redeploy --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c58544bd..87a6195b 100644 --- a/README.md +++ b/README.md @@ -102,3 +102,5 @@ 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 + +deploy From 2b6ed9f316fc55af591e4d2695a8c7a230222763 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 26 Jan 2019 08:34:19 +0900 Subject: [PATCH 02/11] allow 20 txids. --- src/routes/v2/slp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/v2/slp.ts b/src/routes/v2/slp.ts index e4f8fab6..a34d46a2 100644 --- a/src/routes/v2/slp.ts +++ b/src/routes/v2/slp.ts @@ -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" }) } From de9f163ae16dc5173f00e9e4d56e7d3af16a366e Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 26 Jan 2019 09:06:54 +0900 Subject: [PATCH 03/11] Redeploy --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 87a6195b..c58544bd 100644 --- a/README.md +++ b/README.md @@ -102,5 +102,3 @@ 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 - -deploy From 808cd3f6e4dab7344f60d4e634a5aeab7b966159 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 26 Jan 2019 09:21:53 +0900 Subject: [PATCH 04/11] Force redeploy. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c58544bd..87a6195b 100644 --- a/README.md +++ b/README.md @@ -102,3 +102,5 @@ 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 + +deploy From 55db1d25006f7bfc594e79463178fa77296607de Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 26 Jan 2019 09:23:54 +0900 Subject: [PATCH 05/11] Force redeploy. --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 87a6195b..c58544bd 100644 --- a/README.md +++ b/README.md @@ -102,5 +102,3 @@ 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 - -deploy From 949772055f265d51852048a79f9317d4efd73ac5 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 26 Jan 2019 09:42:30 +0900 Subject: [PATCH 06/11] Redeploy --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c58544bd..87a6195b 100644 --- a/README.md +++ b/README.md @@ -102,3 +102,5 @@ 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 + +deploy From c8398c652dee181ce7b27cd24190ed1975008e27 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 26 Jan 2019 10:20:04 +0900 Subject: [PATCH 07/11] Force redeploy --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 87a6195b..c58544bd 100644 --- a/README.md +++ b/README.md @@ -102,5 +102,3 @@ 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 - -deploy From 8152e0f65caf8dc1a78dd1be08e15592aec3ce44 Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 28 Jan 2019 11:38:47 +0900 Subject: [PATCH 08/11] Force redeploy. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c58544bd..87ee4ad1 100644 --- a/README.md +++ b/README.md @@ -102,3 +102,5 @@ 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 + +redeplo From b95700731e6772b7a32e9b70795e66f8c0e9ef6d Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 28 Jan 2019 11:49:29 +0900 Subject: [PATCH 09/11] Swap URLs to test. --- src/routes/v2/slp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/v2/slp.ts b/src/routes/v2/slp.ts index a34d46a2..13eaee90 100644 --- a/src/routes/v2/slp.ts +++ b/src/routes/v2/slp.ts @@ -449,9 +449,9 @@ async function validateBulk( async function isValidSlpTxid(txid: string) { let result try { - result = await validateTx(txid, process.env.SLP_VALIDATE_URL) - } catch (err) { result = await validateTx(txid, process.env.SLP_VALIDATE_FAILOVER_URL) + } catch (err) { + result = await validateTx(txid, process.env.SLP_VALIDATE_URL) } if (result === true) { From 62f0391b5346aa8cde9c431600405b2a5649d42b Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 28 Jan 2019 13:03:16 +0900 Subject: [PATCH 10/11] Force redeploy. --- README.md | 1 - src/routes/v2/slp.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 87ee4ad1..939e337b 100644 --- a/README.md +++ b/README.md @@ -103,4 +103,3 @@ PORT=3000 BITCOINCOM_BASEURL=http://localhost:3000/api/ RPC_BASEURL=http://local Finally open `http://localhost:3000/` and confirm you see the GUI -redeplo diff --git a/src/routes/v2/slp.ts b/src/routes/v2/slp.ts index 13eaee90..de664236 100644 --- a/src/routes/v2/slp.ts +++ b/src/routes/v2/slp.ts @@ -446,7 +446,7 @@ async function validateBulk( } } -async function isValidSlpTxid(txid: string) { +async function isValidSlpTxid(txid: string): Promise { let result try { result = await validateTx(txid, process.env.SLP_VALIDATE_FAILOVER_URL) From 84d4a7e7717882ebeeb6a22e882e167389222b1f Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 28 Jan 2019 13:18:01 +0900 Subject: [PATCH 11/11] Swap validate URLs. --- src/routes/v2/slp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/v2/slp.ts b/src/routes/v2/slp.ts index de664236..30867177 100644 --- a/src/routes/v2/slp.ts +++ b/src/routes/v2/slp.ts @@ -449,9 +449,9 @@ async function validateBulk( async function isValidSlpTxid(txid: string): Promise { let result try { - result = await validateTx(txid, process.env.SLP_VALIDATE_FAILOVER_URL) - } catch (err) { result = await validateTx(txid, process.env.SLP_VALIDATE_URL) + } catch (err) { + result = await validateTx(txid, process.env.SLP_VALIDATE_FAILOVER_URL) } if (result === true) {