diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-10-27 20:24:31 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2015-02-25 18:44:49 -0500 |
commit | eec37136fd0f6ab80772380d8f047d98743f31f5 (patch) | |
tree | f2e22ac82464d1d37ec312c1b76ab98cb8a29525 /src/chainparams.h | |
parent | 8b298ca7d7540acc19d1df79a5c2af7b5aca8cbe (diff) |
make CMessageHeader a dumb storage class
It shouldn't know or care about bitcoind's chain param selection
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; |