mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 00:48:05 +00:00
don't alarm user if blockchain is just a little bit behind
This commit is contained in:
parent
65bbe94fb0
commit
5237b06a9e
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user