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 @@ -98,7 +98,6 @@ class CMainParams : public CChainParams {
98
98
99
99
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN (pnSeed6_main));
100
100
101
- fRequireRPCPassword = true ;
102
101
fMiningRequiresPeers = true ;
103
102
fDefaultConsistencyChecks = false ;
104
103
fRequireStandard = true ;
@@ -169,7 +168,6 @@ class CTestNetParams : public CMainParams {
169
168
170
169
vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN (pnSeed6_test));
171
170
172
- fRequireRPCPassword = true ;
173
171
fMiningRequiresPeers = true ;
174
172
fDefaultConsistencyChecks = false ;
175
173
fRequireStandard = false ;
@@ -215,7 +213,6 @@ class CRegTestParams : public CTestNetParams {
215
213
vFixedSeeds.clear (); // ! Regtest mode doesn't have any fixed seeds.
216
214
vSeeds.clear (); // ! Regtest mode doesn't have any DNS seeds.
217
215
218
- fRequireRPCPassword = false ;
219
216
fMiningRequiresPeers = false ;
220
217
fDefaultConsistencyChecks = true ;
221
218
fRequireStandard = false ;
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ class CChainParams
51
51
int GetDefaultPort () const { return nDefaultPort; }
52
52
53
53
const CBlock& GenesisBlock () const { return genesis; }
54
- bool RequireRPCPassword () const { return fRequireRPCPassword ; }
55
54
/* * Make miner wait to have peers to avoid wasting work */
56
55
bool MiningRequiresPeers () const { return fMiningRequiresPeers ; }
57
56
/* * Default value for -checkmempool and -checkblockindex argument */
@@ -83,7 +82,6 @@ class CChainParams
83
82
std::string strNetworkID;
84
83
CBlock genesis;
85
84
std::vector<SeedSpec6> vFixedSeeds;
86
- bool fRequireRPCPassword ;
87
85
bool fMiningRequiresPeers ;
88
86
bool fDefaultConsistencyChecks ;
89
87
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