From ba60d5459e05d0f58852251086abb043069b0a70 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Sun, 22 Aug 2021 17:32:43 +0200 Subject: [PATCH 01/15] merge bitcoin#22772: hasher cleanup (follow-up to bitcoin#19935) `KeyIDHasher` was never introduced as Dash uses different HD logic. Therefore, there is no `KeyIDHasher` to remove. --- src/util/hasher.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/util/hasher.h b/src/util/hasher.h index cb7d26968b..59a965a4d6 100644 --- a/src/util/hasher.h +++ b/src/util/hasher.h @@ -33,10 +33,6 @@ public: SaltedOutpointHasher(bool deterministic = false); /** - * This *must* return size_t. With Boost 1.46 on 32-bit systems the - * unordered_map will behave unpredictably if the custom hasher returns a - * uint64_t, resulting in failures when syncing the chain (#4634). - * * Having the hash noexcept allows libstdc++'s unordered_map to recalculate * the hash during rehash, so it does not have to cache the value. This * reduces node's memory by sizeof(size_t). The required recalculation has From 7c03133be323356142346e69eec5f026e75ccb70 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Wed, 15 Sep 2021 18:33:43 +0300 Subject: [PATCH 02/15] merge bitcoin#22987: Fix "RuntimeError: Event loop is closed" on Windows --- test/functional/test_framework/p2p.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/test_framework/p2p.py b/test/functional/test_framework/p2p.py index 3c8896c50e..43c27a4702 100755 --- a/test/functional/test_framework/p2p.py +++ b/test/functional/test_framework/p2p.py @@ -631,6 +631,8 @@ class NetworkThread(threading.Thread): NetworkThread.listeners = {} NetworkThread.protos = {} + if sys.platform == 'win32': + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) NetworkThread.network_event_loop = asyncio.new_event_loop() def run(self): From b35dc7236d446c9c8203f16e7f6bdd2eb256cc3e Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:14:33 +0000 Subject: [PATCH 03/15] merge bitcoin#23185: Add ParseMoney and ParseScript tests --- src/Makefile.test.include | 3 +- src/test/script_parse_tests.cpp | 55 +++++++++++++++++++++++++++++++++ src/test/util_tests.cpp | 12 +++++++ 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 src/test/script_parse_tests.cpp diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 92e2f086ff..839224e9a1 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -150,8 +150,9 @@ BITCOIN_TESTS =\ test/script_p2sh_tests.cpp \ test/script_p2pk_tests.cpp \ test/script_p2pkh_tests.cpp \ - test/script_tests.cpp \ + test/script_parse_tests.cpp \ test/script_standard_tests.cpp \ + test/script_tests.cpp \ test/scriptnum_tests.cpp \ test/serfloat_tests.cpp \ test/serialize_tests.cpp \ diff --git a/src/test/script_parse_tests.cpp b/src/test/script_parse_tests.cpp new file mode 100644 index 0000000000..5b8b6a725f --- /dev/null +++ b/src/test/script_parse_tests.cpp @@ -0,0 +1,55 @@ +// Copyright (c) 2021 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include +#include