From be0d8907b542707c3202abcefb9e6ca897552a22 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 29 Sep 2025 21:57:12 -0600 Subject: [PATCH] Add avail blocks to validator --- .gitignore | 4 +++- index.js | 1 - public/validator/index.html | 41 +++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 72f2a2b..735daa7 100644 --- a/.gitignore +++ b/.gitignore @@ -131,4 +131,6 @@ dist *.db sessions/* -.DS_Store \ No newline at end of file +.DS_Store + +test/* \ No newline at end of file diff --git a/index.js b/index.js index de537d5..982ea1e 100644 --- a/index.js +++ b/index.js @@ -621,7 +621,6 @@ app.get("/api/v1/directory/openBlocks", (req, res) => { pool.query("SELECT block_start, block_length FROM routes").then((rows) => { console.log(JSON.stringify(rows)); // for testing - return; const takenBlocks = rows.map(row => { return { start: row.block_start, end: row.block_start + row.block_length }; }); diff --git a/public/validator/index.html b/public/validator/index.html index f7cfdad..e5246f1 100644 --- a/public/validator/index.html +++ b/public/validator/index.html @@ -50,6 +50,47 @@ + +
+

Available Blocks

+ + + + + + + + + +
Available Blocks
Loading...
+
+ +