From 5237b06a9e3c170e85612126e2d8a1903efdd7b0 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 2 Jan 2015 15:14:06 -0200 Subject: [PATCH] don't alarm user if blockchain is just a little bit behind --- js/twister_network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/twister_network.js b/js/twister_network.js index 79f4836..9796fdb 100644 --- a/js/twister_network.js +++ b/js/twister_network.js @@ -163,7 +163,8 @@ function networkUpdate(cbFunc, cbArg) { } else { var daysOld = (curTime - twisterdLastBlockTime) / (3600*24); $.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 )