Skip to content

Commit 6e25d83

Browse files
committed
Remove remaining references to BIP70
in comments, rpc output, and the REST doc
1 parent bcd3ee0 commit 6e25d83

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

doc/REST-interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Given a block hash: returns <COUNT> amount of blockheaders in upward direction.
3333

3434
Returns various state info regarding block chain processing.
3535
Only supports JSON as output format.
36-
* chain : (string) current network name as defined in BIP70 (main, test, regtest)
36+
* chain : (string) current network name (main, test, regtest)
3737
* blocks : (numeric) the current number of blocks processed in the server
3838
* headers : (numeric) the current number of headers we have validated
3939
* bestblockhash : (string) the hash of the currently best block

src/chainparams.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class CChainParams
7575
/** Default value for -checkmempool and -checkblockindex argument */
7676
bool DefaultConsistencyChecks() const { return IsRegTestNet(); }
7777

78-
/** Return the BIP70 network string (main, test or regtest) */
78+
/** Return the network string */
7979
std::string NetworkIDString() const { return strNetworkID; }
8080
const std::vector<CDNSSeedData>& DNSSeeds() const { return vSeeds; }
8181
const std::vector<unsigned char>& Base58Prefix(Base58Type type) const { return base58Prefixes[type]; }
@@ -115,7 +115,7 @@ std::unique_ptr<CChainParams> CreateChainParams(const std::string& chain);
115115
const CChainParams& Params();
116116

117117
/**
118-
* Sets the params returned by Params() to those for the given BIP70 chain name.
118+
* Sets the params returned by Params() to those for the given chain name.
119119
* @throws std::runtime_error when the chain is not supported.
120120
*/
121121
void SelectParams(const std::string& chain);

src/chainparamsbase.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
class CBaseChainParams
1818
{
1919
public:
20-
/** BIP70 chain name strings (main, test or regtest) */
20+
///@{
21+
/** Chain name strings */
2122
static const std::string MAIN;
2223
static const std::string TESTNET;
2324
static const std::string REGTEST;
25+
///@}
2426

2527
const std::string& DataDir() const { return strDataDir; }
2628
int RPCPort() const { return nRPCPort; }
@@ -55,7 +57,7 @@ const CBaseChainParams& BaseParams();
5557
void SelectBaseParams(const std::string& chain);
5658

5759
/**
58-
* Looks for -regtest, -testnet and returns the appropriate BIP70 chain name.
60+
* Returns the appropriate chain name from the program arguments.
5961
* @return CBaseChainParams::MAX_NETWORK_TYPES if an invalid combination is given. CBaseChainParams::MAIN by default.
6062
*/
6163
std::string ChainNameFromCommandLine();

src/qt/networkstyle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class NetworkStyle
1414
{
1515
public:
16-
/** Get style associated with provided BIP70 network id, or 0 if not known */
16+
/** Get style associated with provided network id, or 0 if not known */
1717
static const NetworkStyle* instantiate(const QString& networkId);
1818

1919
const QString& getAppName() const { return appName; }

src/rpc/blockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
982982

983983
"\nResult:\n"
984984
"{\n"
985-
" \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n"
985+
" \"chain\": \"xxxx\", (string) current network name (main, test, regtest)\n"
986986
" \"blocks\": xxxxxx, (numeric) the current number of blocks processed in the server\n"
987987
" \"headers\": xxxxxx, (numeric) the current number of headers we have validated\n"
988988
" \"bestblockhash\": \"...\", (string) the hash of the currently best block\n"

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ UniValue getmininginfo(const JSONRPCRequest& request)
300300
" \"hashespersec\": n (numeric) The hashes per second of the generation, or 0 if no generation.\n"
301301
" \"pooledtx\": n (numeric) The size of the mem pool\n"
302302
" \"testnet\": true|false (boolean) If using testnet or not\n"
303-
" \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n"
303+
" \"chain\": \"xxxx\", (string) current network name (main, test, regtest)\n"
304304
"}\n"
305305

306306
"\nExamples:\n" +

0 commit comments

Comments
 (0)