Browse Source

Changed default mainnet P2P port from 9333 to 9338.

Changed default mainnet RPC port from 9332 to 9337.
mBTC: va
uBTC: mva
Changed default example address to SegWit address.
cn
Jianping Wu 6 years ago
parent
commit
ce06e591cd
  1. 2
      src/chainparams.cpp
  2. 4
      src/chainparamsbase.cpp
  3. 4
      src/qt/bitcoinunits.cpp
  4. 2
      src/qt/guiutil.cpp

2
src/chainparams.cpp

@ -109,7 +109,7 @@ public: @@ -109,7 +109,7 @@ public:
pchMessageStart[1] = 0xc6;
pchMessageStart[2] = 0x07;
pchMessageStart[3] = 0x9a;
nDefaultPort = 9333;
nDefaultPort = 9338;
nPruneAfterHeight = 100000;
const uint32_t genesisBlockReward = 0.00001 * COIN; // A small reward for the core developers :-)

4
src/chainparamsbase.cpp

@ -33,7 +33,7 @@ class CBaseMainParams : public CBaseChainParams @@ -33,7 +33,7 @@ class CBaseMainParams : public CBaseChainParams
public:
CBaseMainParams()
{
nRPCPort = 9332;
nRPCPort = 9337;
}
};
@ -46,7 +46,7 @@ public: @@ -46,7 +46,7 @@ public:
CBaseTestNetParams()
{
nRPCPort = 19332;
strDataDir = "testnet5";
strDataDir = "testnet6";
}
};

4
src/qt/bitcoinunits.cpp

@ -41,8 +41,8 @@ QString BitcoinUnits::longName(int unit) @@ -41,8 +41,8 @@ QString BitcoinUnits::longName(int unit)
switch(unit)
{
case BTC: return QString("KVA");
case mBTC: return QString("k");
case uBTC: return QString("m");
case mBTC: return QString("va");
case uBTC: return QString("mva");
default: return QString("???");
}
}

2
src/qt/guiutil.cpp

@ -107,7 +107,7 @@ static const uint8_t dummydata[] = {0xeb,0x15,0x23,0x1d,0xfc,0xeb,0x60,0x92,0x58 @@ -107,7 +107,7 @@ static const uint8_t dummydata[] = {0xeb,0x15,0x23,0x1d,0xfc,0xeb,0x60,0x92,0x58
// Generate a dummy address with invalid CRC, starting with the network prefix.
static std::string DummyAddress(const CChainParams &params)
{
std::vector<unsigned char> sourcedata = params.Base58Prefix(CChainParams::PUBKEY_ADDRESS);
std::vector<unsigned char> sourcedata = params.Base58Prefix(CChainParams::SCRIPT_ADDRESS2);
sourcedata.insert(sourcedata.end(), dummydata, dummydata + sizeof(dummydata));
for(int i=0; i<256; ++i) { // Try every trailing byte
std::string s = EncodeBase58(sourcedata.data(), sourcedata.data() + sourcedata.size());

Loading…
Cancel
Save