Browse Source

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.
dev
fekt 1 month ago
parent
commit
9f47d1e293
  1. 2
      src/controller.cpp

2
src/controller.cpp

@ -322,7 +322,7 @@ void Controller::getInfoThenRefresh(bool force)
int difficulty = reply["difficulty"].get<json::number_integer_t>();
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<json::number_integer_t>();
int notarized = reply["notarized"].get<json::number_integer_t>();

Loading…
Cancel
Save