aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-07-08 14:47:39 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-07-10 15:01:55 +0200
commit85ee55b5c37bedca98ec472439e1710277e8e4b2 (patch)
tree23b253176a0570875c274982ec1172545e40d699 /src/chainparams.h
parent11576a57d2ee37aa421e0fce69e70751b5af9a61 (diff)
downloadbitcoin-85ee55b5c37bedca98ec472439e1710277e8e4b2.tar.xz
rpc: Remove chain-specific RequireRPCPassword
I've never liked the chain-specific exception to having to set a password. It gives issues with #6388 which makes it valid to set no password in every case (as it enables random cookie authentication). This pull removes the flag, so that all chains are regarded the same. It also removes the username==password test, which doesn't provide any substantial extra security.
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index 8044b553e1..8f13c2814e 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -53,7 +53,6 @@ public:
/** Used if GenerateBitcoins is called with a negative number of threads */
int DefaultMinerThreads() const { return nMinerThreads; }
const CBlock& GenesisBlock() const { return genesis; }
- bool RequireRPCPassword() const { return fRequireRPCPassword; }
/** Make miner wait to have peers to avoid wasting work */
bool MiningRequiresPeers() const { return fMiningRequiresPeers; }
/** Default value for -checkmempool and -checkblockindex argument */
@@ -86,7 +85,6 @@ protected:
std::string strNetworkID;
CBlock genesis;
std::vector<SeedSpec6> vFixedSeeds;
- bool fRequireRPCPassword;
bool fMiningRequiresPeers;
bool fDefaultConsistencyChecks;
bool fRequireStandard;