From 9f47d1e293dec6d14f660148a233722b6a126af7 Mon Sep 17 00:00:00 2001 From: fekt Date: Mon, 15 Apr 2024 01:41:53 -0400 Subject: [PATCH] Update blocktime for DRGX Difficulty, longestchain, and some other data does not render in UI and needs to be fixed. Halving calculations also need to be reviewed for accuracy for DRGX. --- src/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index 66912c1..28e0d28 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -322,7 +322,7 @@ void Controller::getInfoThenRefresh(bool force) int difficulty = reply["difficulty"].get(); int num_halvings = 1; // number of halvings that have occured already int blocks_until_halving = (num_halvings*1680000 + 340000) - curBlock; - int blocktime = 75; + int blocktime = 30; int halving_days = (blocks_until_halving * blocktime) / (60 * 60 * 24) ; int longestchain = reply["longestchain"].get(); int notarized = reply["notarized"].get();