Convert compression.h to new serialization framework

This commit is contained in:
Pieter Wuille
2020-01-18 07:32:58 -08:00
parent ca34c5cba5
commit 4de934b9b5
5 changed files with 25 additions and 40 deletions

View File

@@ -206,7 +206,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
DeserializeFromFuzzingInput(buffer, dbi);
#elif TXOUTCOMPRESSOR_DESERIALIZE
CTxOut to;
CTxOutCompressor toc(to);
auto toc = Using<TxOutCompression>(to);
DeserializeFromFuzzingInput(buffer, toc);
#elif BLOCKTRANSACTIONS_DESERIALIZE
BlockTransactions bt;