diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-07 05:34:31 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-07 05:38:34 -0800 |
commit | 2f10aa0fa122b089d8affbe725008f054a00fe46 (patch) | |
tree | ff176c05bac7107d27fc3220472d33a03bc29fb4 /src/chainparams.h | |
parent | 7c3fbc34aed578398b3f180a621c671ff3837cec (diff) | |
parent | eec37136fd0f6ab80772380d8f047d98743f31f5 (diff) |
Merge pull request #5151
eec3713 make CMessageHeader a dumb storage class (Cory Fields)
Diffstat (limited to 'src/chainparams.h')
-rw-r--r-- | src/chainparams.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/chainparams.h b/src/chainparams.h index 86b84df667..78b575d8f3 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -14,8 +14,6 @@ #include <vector> -typedef unsigned char MessageStartChars[MESSAGE_START_SIZE]; - struct CDNSSeedData { std::string name, host; CDNSSeedData(const std::string &strName, const std::string &strHost) : name(strName), host(strHost) {} @@ -42,7 +40,7 @@ public: }; const uint256& HashGenesisBlock() const { return hashGenesisBlock; } - const MessageStartChars& MessageStart() const { return pchMessageStart; } + const CMessageHeader::MessageStartChars& MessageStart() const { return pchMessageStart; } const std::vector<unsigned char>& AlertKey() const { return vAlertPubKey; } int GetDefaultPort() const { return nDefaultPort; } const arith_uint256& ProofOfWorkLimit() const { return bnProofOfWorkLimit; } @@ -83,7 +81,7 @@ protected: CChainParams() {} uint256 hashGenesisBlock; - MessageStartChars pchMessageStart; + CMessageHeader::MessageStartChars pchMessageStart; //! Raw pub key bytes for the broadcast alert signing key. std::vector<unsigned char> vAlertPubKey; int nDefaultPort; |