File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ class CBaseChainParams
26
26
// /@}
27
27
28
28
const std::string& DataDir () const { return strDataDir; }
29
- int RPCPort () const { return nRPCPort ; }
29
+ uint16_t RPCPort () const { return m_rpc_port ; }
30
30
uint16_t OnionServiceTargetPort () const { return m_onion_service_target_port; }
31
31
32
32
CBaseChainParams () = delete ;
33
- CBaseChainParams (const std::string& data_dir, int rpc_port, uint16_t onion_service_target_port)
34
- : nRPCPort (rpc_port), m_onion_service_target_port(onion_service_target_port), strDataDir(data_dir) {}
33
+ CBaseChainParams (const std::string& data_dir, uint16_t rpc_port, uint16_t onion_service_target_port)
34
+ : m_rpc_port (rpc_port), m_onion_service_target_port(onion_service_target_port), strDataDir(data_dir) {}
35
35
36
36
private:
37
- int nRPCPort ;
37
+ const uint16_t m_rpc_port ;
38
38
const uint16_t m_onion_service_target_port;
39
39
std::string strDataDir;
40
40
};
You can’t perform that action at this time.
0 commit comments