[ADDED] DEBUG log if RPC > 0.16 getinfo wrapper fails

This commit is contained in:
Sebastian Grewe 2018-05-23 19:56:44 +02:00
parent 96ab98a6fa
commit 3f4efc983a

View File

@ -27,6 +27,7 @@ class BitcoinWrapper extends BitcoinClient {
try {
return $this->memcache->setCache(__FUNCTION__, parent::getnetworkinfo()+parent::getmininginfo()+parent::getwalletinfo(), 30);
} 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);
}
}