aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-03-11 09:35:50 -0700
committerPieter Wuille <pieter@wuille.net>2020-03-30 16:10:30 -0700
commit4eb5643e3538863c9d2ff261f49a9a1b248de243 (patch)
tree377437ffee20c67fa7e0611c31be6b2490a4483c /src/rest.cpp
parent2b1f85e8c52c8bc5a17eae4c809eaf61d724af98 (diff)
downloadbitcoin-4eb5643e3538863c9d2ff261f49a9a1b248de243.tar.xz
Convert everything except wallet/qt to new serialization
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp9
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);
}
};