Skip to content

Commit 11150df

Browse files
sipafurszy
authored andcommitted
Make fuzzer actually test CTxOutCompressor
1 parent d6f6a85 commit 11150df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/test_bitcoin_fuzzy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@ int main(int argc, char **argv)
239239
case CTXOUTCOMPRESSOR_DESERIALIZE:
240240
{
241241
CTxOut to;
242+
CTxOutCompressor toc(to);
242243
try
243244
{
244-
ds >> to;
245+
ds >> toc;
245246
} catch (const std::ios_base::failure& e) {return 0;}
246247

247-
CTxOutCompressor toc(to);
248248
break;
249249
}
250250
default:

0 commit comments

Comments
 (0)