use wrapper to fetch last network block
This commit is contained in:
parent
baaf743218
commit
b8029c04f3
@ -8,7 +8,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
$debug->append('No cached version available, fetching from backend', 3);
|
$debug->append('No cached version available, fetching from backend', 3);
|
||||||
if ($bitcoin->can_connect() === true){
|
if ($bitcoin->can_connect() === true){
|
||||||
$dDifficulty = $bitcoin->getdifficulty();
|
$dDifficulty = $bitcoin->getdifficulty();
|
||||||
$iBlock = $bitcoin->query('getblockcount');
|
$iBlock = $bitcoin->getblockcount();
|
||||||
} else {
|
} else {
|
||||||
$dDifficulty = 1;
|
$dDifficulty = 1;
|
||||||
$iBlock = 0;
|
$iBlock = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user