diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-16 17:30:53 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-16 17:41:27 +0200 |
commit | 807691ca96a1a4b0655f6ea80b721b940dd29a39 (patch) | |
tree | 66a7583a17c11ea84a6e1a2f08356907d4e5cfb1 /src/chainparams.cpp | |
parent | f73082db87b9e07ddcd4656f4fc309c4d2854285 (diff) | |
parent | f5ae6c98260fdd3c0ca203ce67c6467d9cdaea95 (diff) | |
download | bitcoin-807691ca96a1a4b0655f6ea80b721b940dd29a39.tar.xz |
Merge pull request #4326
f5ae6c9 add NetworkIDString() to chainparams (Philip Kaufmann)
Diffstat (limited to 'src/chainparams.cpp')
-rw-r--r-- | src/chainparams.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 1749dd6ff9..47136eeeea 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -99,6 +99,7 @@ class CMainParams : public CChainParams { public: CMainParams() { networkID = CChainParams::MAIN; + strNetworkID = "main"; // The message start string is designed to be unlikely to occur in normal data. // The characters are rarely used upper ASCII, not valid as UTF-8, and produce // a large 4-byte int at any alignment. @@ -189,6 +190,7 @@ class CTestNetParams : public CMainParams { public: CTestNetParams() { networkID = CChainParams::TESTNET; + strNetworkID = "test"; // The message start string is designed to be unlikely to occur in normal data. // The characters are rarely used upper ASCII, not valid as UTF-8, and produce // a large 4-byte int at any alignment. @@ -240,6 +242,7 @@ class CRegTestParams : public CTestNetParams { public: CRegTestParams() { networkID = CChainParams::REGTEST; + strNetworkID = "regtest"; pchMessageStart[0] = 0xfa; pchMessageStart[1] = 0xbf; pchMessageStart[2] = 0xb5; |