aboutsummaryrefslogtreecommitdiff
path: root/src/coins.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2020-01-18 07:32:58 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2020-01-21 20:29:11 -0800
commit4de934b9b5b4be1bac8fe205f4ee9a79e772dc34 (patch)
tree7d3c21b118a2597a1fc61bd813bd28b6c81016fc /src/coins.h
parentca34c5cba5fbb9b046b074a234f06ecf6ed5d610 (diff)
Convert compression.h to new serialization framework
Diffstat (limited to 'src/coins.h')
-rw-r--r--src/coins.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coins.h b/src/coins.h
index 68f7596745..e71c8a47bc 100644
--- a/src/coins.h
+++ b/src/coins.h
@@ -61,7 +61,7 @@ public:
assert(!IsSpent());
uint32_t code = nHeight * 2 + fCoinBase;
::Serialize(s, VARINT(code));
- ::Serialize(s, CTxOutCompressor(REF(out)));
+ ::Serialize(s, Using<TxOutCompression>(out));
}
template<typename Stream>
@@ -70,7 +70,7 @@ public:
::Unserialize(s, VARINT(code));
nHeight = code >> 1;
fCoinBase = code & 1;
- ::Unserialize(s, CTxOutCompressor(out));
+ ::Unserialize(s, Using<TxOutCompression>(out));
}
bool IsSpent() const {