From 3f4efc983add3bf56baf15ff5e886490bfd9679a Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 23 May 2018 19:56:44 +0200 Subject: [PATCH] [ADDED] DEBUG log if RPC > 0.16 getinfo wrapper fails --- include/classes/bitcoinwrapper.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/classes/bitcoinwrapper.class.php b/include/classes/bitcoinwrapper.class.php index e64579ce..c399e52e 100755 --- a/include/classes/bitcoinwrapper.class.php +++ b/include/classes/bitcoinwrapper.class.php @@ -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); } }