X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fprotocol.h;h=fcc8c9e06f650a97c6305e2d06597e401aafddbf;hp=ecc2e08b7f869fc59f9c07503ba7e2e273e02ef7;hb=27ce22da0815f4c1fa0e949cc4740e3f4dd1ea9c;hpb=8bad3792d398953a742ddba82a86034130c77509 diff --git a/src/protocol.h b/src/protocol.h index ecc2e08..fcc8c9e 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -17,9 +17,9 @@ #include "uint256.h" extern bool fTestNet; -static inline unsigned short GetDefaultPort(const bool testnet = fTestNet) +inline unsigned short GetDefaultPort() { - return testnet ? 17777 : 7777; + return static_cast(fTestNet ? 17777 : 7777); } @@ -93,8 +93,6 @@ class CAddress : public CService READWRITE(*pip); ) - void print() const; - // TODO: make private (improves encapsulation) public: uint64_t nServices; @@ -125,7 +123,6 @@ class CInv bool IsKnownType() const; const char* GetCommand() const; std::string ToString() const; - void print() const; // TODO: make private (improves encapsulation) public: