craigwatson / bitcoind-status

PHP application to display status and information from the Bitcoin node daemon.
https://odin.vikingserv.net
Apache License 2.0
82 stars 77 forks source link

getinfo() is going to be deprecated in Bitcoin Core 0.16 onwards #43

Closed jamesmacwhite closed 6 years ago

jamesmacwhite commented 6 years ago

Just a heads up for the future. Possible reworking needed.

WARNING: getinfo is deprecated and will be fully removed in 0.16. Projects should transition to using getblockchaininfo, getnetworkinfo, and getwalletinfo before upgrading to 0.16

https://github.com/bitcoin/bitcoin/issues/11382 https://github.com/bitcoin/bitcoin/issues/11671

cfahrni commented 6 years ago

quick workaround for 0.16:

pi@raspberrypi:/var/www/html $ diff php/functions.php php/functions.php.bak
54c54
<     $data = $bitcoin->getblockchaininfo();
---
>     $data = $bitcoin->getinfo();

there is more testing and reworking needed i suppose.