use wrapper to fetch last network block

This commit is contained in:
Sebastian Grewe 2013-09-17 09:55:41 +02:00
parent baaf743218
commit b8029c04f3

View File

@ -8,7 +8,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
$debug->append('No cached version available, fetching from backend', 3);
if ($bitcoin->can_connect() === true){
$dDifficulty = $bitcoin->getdifficulty();
$iBlock = $bitcoin->query('getblockcount');
$iBlock = $bitcoin->getblockcount();
} else {
$dDifficulty = 1;
$iBlock = 0;