bitpay / insight

A bitcoin blockchain explorer and API
https://insight.bitpay.com/
MIT License
1.19k stars 1.11k forks source link

getinfo deprecated #934

Open praeluceo opened 6 years ago

praeluceo commented 6 years ago

After upgrading my bitcoin daemon to 0.16 on my insight server I get the following error on the status screen:

API ERROR: getinfo This call was removed in version 0.16.0. Use the appropriate fields from: - getblockchaininfo: blocks, difficulty, chain - getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings - getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion bitcoin-cli has the option -getinfo to collect and format these in the old format.. Code:-32601

It appears insight-api may need to be updated to use getblockchaininfo parameters.

praeluceo commented 6 years ago

Specifically from the release announcement: https://bitcoin.org/en/release/v0.16.0#low-level-changes

The deprecated RPC getinfo was removed. It is recommended that the more specific RPCs are used: getblockchaininfo getnetworkinfo getwalletinfo getmininginfo The wallet RPC getreceivedbyaddress will return an error if called with an address not in the wallet.

cryptozeny commented 5 years ago

same here. any good news?