diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2013-05-04 16:10:09 +0200 |
---|---|---|
committer | Pieter Wuille <sipa@ulyssis.org> | 2013-05-30 05:20:23 +0200 |
commit | 896185d7ed3fa23415424c608f0897d6139640f4 (patch) | |
tree | 818fdef522d74587e8b85d2f60e3682b47a18b73 /src/key.h | |
parent | dfa23b94c24aae6466152fccbe896ba5dc0e97b4 (diff) |
Make signature cache store CPubKeys
Diffstat (limited to 'src/key.h')
-rw-r--r-- | src/key.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -84,7 +84,7 @@ public: Set(vch.begin(), vch.end()); } - // Simply read-only vector-like interface to the pubkey data. + // Simple read-only vector-like interface to the pubkey data. unsigned int size() const { return GetLen(vch[0]); } const unsigned char *begin() const { return vch; } const unsigned char *end() const { return vch+size(); } @@ -109,12 +109,11 @@ public: } template<typename Stream> void Serialize(Stream &s, int nType, int nVersion) const { unsigned int len = size(); - ::Serialize(s, VARINT(len), nType, nVersion); + ::WriteCompactSize(s, len); s.write((char*)vch, len); } template<typename Stream> void Unserialize(Stream &s, int nType, int nVersion) { - unsigned int len; - ::Unserialize(s, VARINT(len), nType, nVersion); + unsigned int len = ::ReadCompactSize(s); if (len <= 65) { s.read((char*)vch, len); } else { |