File tree Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Expand file tree Collapse file tree 3 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ class CMainParams : public CChainParams {
99
99
100
100
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN (pnSeed6_main));
101
101
102
- fRequireRPCPassword = true ;
103
102
fMiningRequiresPeers = true ;
104
103
fDefaultConsistencyChecks = false ;
105
104
fRequireStandard = true ;
@@ -171,7 +170,6 @@ class CTestNetParams : public CMainParams {
171
170
172
171
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN (pnSeed6_test));
173
172
174
- fRequireRPCPassword = true ;
175
173
fMiningRequiresPeers = true ;
176
174
fDefaultConsistencyChecks = false ;
177
175
fRequireStandard = false ;
@@ -218,7 +216,6 @@ class CRegTestParams : public CTestNetParams {
218
216
vFixedSeeds.clear (); // ! Regtest mode doesn't have any fixed seeds.
219
217
vSeeds.clear (); // ! Regtest mode doesn't have any DNS seeds.
220
218
221
- fRequireRPCPassword = false ;
222
219
fMiningRequiresPeers = false ;
223
220
fDefaultConsistencyChecks = true ;
224
221
fRequireStandard = false ;
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ class CChainParams
53
53
/* * Used if GenerateBitcoins is called with a negative number of threads */
54
54
int DefaultMinerThreads () const { return nMinerThreads; }
55
55
const CBlock& GenesisBlock () const { return genesis; }
56
- bool RequireRPCPassword () const { return fRequireRPCPassword ; }
57
56
/* * Make miner wait to have peers to avoid wasting work */
58
57
bool MiningRequiresPeers () const { return fMiningRequiresPeers ; }
59
58
/* * Default value for -checkmempool and -checkblockindex argument */
@@ -86,7 +85,6 @@ class CChainParams
86
85
std::string strNetworkID;
87
86
CBlock genesis;
88
87
std::vector<SeedSpec6> vFixedSeeds;
89
- bool fRequireRPCPassword ;
90
88
bool fMiningRequiresPeers ;
91
89
bool fDefaultConsistencyChecks ;
92
90
bool fRequireStandard ;
Original file line number Diff line number Diff line change @@ -598,8 +598,7 @@ void StartRPCThreads()
598
598
LogPrint (" rpc" , " Allowing RPC connections from: %s\n " , strAllowed);
599
599
600
600
strRPCUserColonPass = mapArgs[" -rpcuser" ] + " :" + mapArgs[" -rpcpassword" ];
601
- if (((mapArgs[" -rpcpassword" ] == " " ) ||
602
- (mapArgs[" -rpcuser" ] == mapArgs[" -rpcpassword" ])) && Params ().RequireRPCPassword ())
601
+ if (mapArgs[" -rpcpassword" ] == " " )
603
602
{
604
603
unsigned char rand_pwd[32 ];
605
604
GetRandBytes (rand_pwd, 32 );
You can’t perform that action at this time.
0 commit comments