From 5dd626a6d34331d1712f49ed164b7aa47a2d7ea7 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 15 Dec 2016 09:18:31 -0800 Subject: [PATCH] Make fuzzer actually test CTxOutCompressor --- src/test/test_bitcoin_fuzzy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/test_bitcoin_fuzzy.cpp b/src/test/test_bitcoin_fuzzy.cpp index e1abde16f49aa..584e6ed008f4e 100644 --- a/src/test/test_bitcoin_fuzzy.cpp +++ b/src/test/test_bitcoin_fuzzy.cpp @@ -240,12 +240,12 @@ int main(int argc, char **argv) case CTXOUTCOMPRESSOR_DESERIALIZE: { CTxOut to; + CTxOutCompressor toc(to); try { - ds >> to; + ds >> toc; } catch (const std::ios_base::failure& e) {return 0;} - CTxOutCompressor toc(to); break; } default: