aboutsummaryrefslogtreecommitdiff
path: root/haunt/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'haunt/static/js')
-rw-r--r--haunt/static/js/proof-of-work.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/haunt/static/js/proof-of-work.js b/haunt/static/js/proof-of-work.js
index 1a57c2a..5dedb66 100644
--- a/haunt/static/js/proof-of-work.js
+++ b/haunt/static/js/proof-of-work.js
@@ -68,10 +68,9 @@ function makeRequest (method, url) {
});
}
-
function raceEndpoint() {
return new Promise(function (resolve, reject) {
- makeRequest("GET", "/api/challenge")
+ makeRequest("GET", "/api/challenge/proof-of-work")
.then(function (data) {
let challengeData = JSON.parse(data);
findPrefix(challengeData.hardness, challengeData.nonce)

© 2015 - 2026 Jakob L. Kreuze