core: add version

This commit is contained in:
Vaxry committed 2025-04-12 20:15:35 +01:00
1 parent e85d7f611b
commit 123e6fafb1
5 files changed
+10 -2

No files matched your search

+1
View File
@@ -234,6 +234,7 @@ void CServerHandler::serveStop(const Pistache::Http::Request& req, Pistache::Htt
page.add("challengeDifficulty", CTinylatesProp(std::to_string(DIFFICULTY)));
page.add("challengeNonce", CTinylatesProp(NONCE));
page.add("checkpointVersion", CTinylatesProp(CHECKPOINT_VERSION));
response.send(Pistache::Http::Code::Ok, page.render().value_or("error"));
}