X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fprotocol.h;h=30f9714ad8229a351cc4c5ae968e617f5c49d0c7;hp=b516f1b897c307095d596a0ebaf6d3d28dd65d8e;hb=0561bbd1c69263dceb24ffacf850788e6e961a13;hpb=6e0c5e3778b83f128f6f14c311d5728392053581 diff --git a/src/protocol.h b/src/protocol.h index b516f1b..30f9714 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -15,10 +15,15 @@ #include #include "uint256.h" +#define PPCOIN_PORT 9901 +#define RPC_PORT 9902 +#define TESTNET_PORT 9903 + extern bool fTestNet; + static inline unsigned short GetDefaultPort(const bool testnet = fTestNet) { - return testnet ? 18333 : 8333; + return testnet ? TESTNET_PORT : PPCOIN_PORT; }