From 415842524d13100ab35056df5e0df67db4aba177 Mon Sep 17 00:00:00 2001 From: philsmd <921533+philsmd@users.noreply.github.com> Date: Wed, 11 Dec 2019 15:45:47 +0100 Subject: [PATCH] tests: allow tests with 05 AND 04 in zlib header for electrum 5 --- tools/test_modules/m21800.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test_modules/m21800.pm b/tools/test_modules/m21800.pm index e72770003..705f066dd 100644 --- a/tools/test_modules/m21800.pm +++ b/tools/test_modules/m21800.pm @@ -168,7 +168,7 @@ sub module_generate_hash my $zlib_rate = ord (substr ($compressed_data, 2, 1)) & 0x07; - if ($zlib_rate != 0x05) + if (($zlib_rate != 0x04) && ($zlib_rate != 0x05)) { next; }