[ADDED] DEBUG log if RPC > 0.16 getinfo wrapper fails
This commit is contained in:
parent
96ab98a6fa
commit
3f4efc983a
@ -27,6 +27,7 @@ class BitcoinWrapper extends BitcoinClient {
|
|||||||
try {
|
try {
|
||||||
return $this->memcache->setCache(__FUNCTION__, parent::getnetworkinfo()+parent::getmininginfo()+parent::getwalletinfo(), 30);
|
return $this->memcache->setCache(__FUNCTION__, parent::getnetworkinfo()+parent::getmininginfo()+parent::getwalletinfo(), 30);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
$this->oDebug->append("DEPRECATED : RPC version < 0.16, fallback to `getinfo` RPC call", 2);
|
||||||
return $this->memcache->setCache(__FUNCTION__, parent::getinfo(), 30);
|
return $this->memcache->setCache(__FUNCTION__, parent::getinfo(), 30);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user