[FIX] Use default cointarget if unset
This commit is contained in:
parent
ae46d2496d
commit
8edfb88ee3
@ -74,11 +74,13 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
$iFirstBlockFound = $statistics->getFirstBlockFound();
|
$iFirstBlockFound = $statistics->getFirstBlockFound();
|
||||||
$iTimeSinceFirstBlockFound = (time() - $iFirstBlockFound);
|
$iTimeSinceFirstBlockFound = (time() - $iFirstBlockFound);
|
||||||
|
|
||||||
|
// Coin target block generation time, default to 150 (2.5 minutes)
|
||||||
|
@$config['cointarget'] ? $smarty->assign("COINGENTIME", $config['cointarget']) : $smarty->assign("COINGENTIME", 150);
|
||||||
|
|
||||||
// Past blocks found, max 4 weeks back
|
// Past blocks found, max 4 weeks back
|
||||||
$iFoundBlocksByTime = $statistics->getLastBlocksbyTime();
|
$iFoundBlocksByTime = $statistics->getLastBlocksbyTime();
|
||||||
// Propagate content our template
|
// Propagate content our template
|
||||||
$smarty->assign("FIRSTBLOCKFOUND", $iTimeSinceFirstBlockFound);
|
$smarty->assign("FIRSTBLOCKFOUND", $iTimeSinceFirstBlockFound);
|
||||||
$smarty->assign("COINGENTIME", $config['cointarget']);
|
|
||||||
$smarty->assign("LASTBLOCKSBYTIME", $iFoundBlocksByTime);
|
$smarty->assign("LASTBLOCKSBYTIME", $iFoundBlocksByTime);
|
||||||
$smarty->assign("BLOCKSFOUND", $aBlocksFoundData);
|
$smarty->assign("BLOCKSFOUND", $aBlocksFoundData);
|
||||||
$smarty->assign("BLOCKLIMIT", $iLimit);
|
$smarty->assign("BLOCKLIMIT", $iLimit);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user