diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-03-11 09:35:50 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-03-30 16:10:30 -0700 |
commit | 4eb5643e3538863c9d2ff261f49a9a1b248de243 (patch) | |
tree | 377437ffee20c67fa7e0611c31be6b2490a4483c /src/rest.cpp | |
parent | 2b1f85e8c52c8bc5a17eae4c809eaf61d724af98 (diff) |
Convert everything except wallet/qt to new serialization
Diffstat (limited to 'src/rest.cpp')
-rw-r--r-- | src/rest.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index 0629557584..ee422ea5ff 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -49,18 +49,13 @@ struct CCoin { uint32_t nHeight; CTxOut out; - ADD_SERIALIZE_METHODS; - CCoin() : nHeight(0) {} explicit CCoin(Coin&& in) : nHeight(in.nHeight), out(std::move(in.out)) {} - template <typename Stream, typename Operation> - inline void SerializationOp(Stream& s, Operation ser_action) + SERIALIZE_METHODS(CCoin, obj) { uint32_t nTxVerDummy = 0; - READWRITE(nTxVerDummy); - READWRITE(nHeight); - READWRITE(out); + READWRITE(nTxVerDummy, obj.nHeight, obj.out); } }; |