This is an alternative to #10841
This PR implements @gmaxwell’s suggestion of a nag
field for getinfo which warns about the deprecation. Instead of calling it nag
, I have named it deprecation-warning
. The output of getinfo
will look like this:
0{
1 "version": 149900,
2 "protocolversion": 70015,
3 "walletversion": 139900,
4 "balance": 0.00000000,
5 "blocks": 476281,
6 "timeoffset": 0,
7 "connections": 2,
8 "proxy": "",
9 "difficulty": 804525194568.1318,
10 "testnet": false,
11 "keypoololdest": 1496858803,
12 "keypoolsize": 197,
13 "unlocked_until": 0,
14 "paytxfee": 0.00000000,
15 "relayfee": 0.00001000,
16 "errors": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications",
17 "deprecation-warning": "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"
18}
I think this should be tagged for 0.15