Quellcode durchsuchen

Add warning comment to getinfo

Warn that people should not add new information, or change current
information returned by getinfo.
tags/v0.15.1
Wladimir J. van der Laan vor 7 Jahren
Ursprung
Commit
f9de17ec2f
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 13 neuen und 0 gelöschten Zeilen
  1. 13
    0
      src/rpcmisc.cpp

+ 13
- 0
src/rpcmisc.cpp Datei anzeigen

@@ -27,6 +27,19 @@ using namespace boost::assign;
using namespace json_spirit;
using namespace std;

/**
* @note Do not add or change anything in the information returned by this
* method. `getinfo` exists for backwards-compatibilty only. It combines
* information from wildly different sources in the program, which is a mess,
* and is thus planned to be deprecated eventually.
*
* Based on the source of the information, new information should be added to:
* - `getblockchaininfo`,
* - `getnetworkinfo` or
* - `getwalletinfo`
*
* Or alternatively, create a specific query method for the information.
**/
Value getinfo(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)

Laden…
Abbrechen
Speichern