Browse Source

don't alarm user if blockchain is just a little bit behind

master
Miguel Freitas 10 years ago
parent
commit
5237b06a9e
  1. 3
      js/twister_network.js

3
js/twister_network.js

@ -163,7 +163,8 @@ function networkUpdate(cbFunc, cbArg) {
} else { } else {
var daysOld = (curTime - twisterdLastBlockTime) / (3600*24); var daysOld = (curTime - twisterdLastBlockTime) / (3600*24);
$.MAL.setNetworkStatusMsg(polyglot.t("downloading_block_chain", { days: daysOld.toFixed(2) }), false); $.MAL.setNetworkStatusMsg(polyglot.t("downloading_block_chain", { days: daysOld.toFixed(2) }), false);
twisterdConnectedAndUptodate = false; // don't alarm user if blockchain is just a little bit behind
twisterdConnectedAndUptodate = (daysOld < 2);
} }
} }
if( args.cbFunc ) if( args.cbFunc )

Loading…
Cancel
Save