diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-01 21:36:46 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-01 22:00:19 +0200 |
commit | 47eb76597efb7dadb36dd98bc20bd80b2db9cd50 (patch) | |
tree | b021b10e49d0e5513b4b597c74ecba5eccff6165 /src/main.h | |
parent | 2e731f24b5a5c894e013a6d752f1cd409303e916 (diff) |
Serializer simplifications after IMPLEMENT_SERIALIZE overhaul
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.h b/src/main.h index 31a1131b83..1d1a9df10f 100644 --- a/src/main.h +++ b/src/main.h @@ -424,12 +424,10 @@ public: template <typename Stream, typename Operation> inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { - bool fRead = ser_action.ForRead(); - READWRITE(nTransactions); READWRITE(vHash); std::vector<unsigned char> vBytes; - if (fRead) { + if (ser_action.ForRead()) { READWRITE(vBytes); CPartialMerkleTree &us = *(const_cast<CPartialMerkleTree*>(this)); us.vBits.resize(vBytes.size() * 8); |