From 484fbdd4449425a7934126281e438db3943adf0b Mon Sep 17 00:00:00 2001 From: Claude Code Date: Mon, 1 Dec 2025 11:47:29 -0600 Subject: [PATCH] test: Remove line breaks from helper functions Backport of bitcoin/bitcoin#25772 This is a partial backport - only applies the line break removal for Serialize() and Verify() helper functions. The IsStandardTx() helper addition is not needed in Dash because Dash already has a global IsStandardTx() helper in src/policy/settings.h that the test uses. --- src/test/script_p2sh_tests.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/script_p2sh_tests.cpp b/src/test/script_p2sh_tests.cpp index c424f255e8a7..e6c4a0e2c925 100644 --- a/src/test/script_p2sh_tests.cpp +++ b/src/test/script_p2sh_tests.cpp @@ -18,15 +18,13 @@ #include // Helpers: -static std::vector -Serialize(const CScript& s) +static std::vector Serialize(const CScript& s) { std::vector sSerialized(s.begin(), s.end()); return sSerialized; } -static bool -Verify(const CScript& scriptSig, const CScript& scriptPubKey, bool fStrict, ScriptError& err) +static bool Verify(const CScript& scriptSig, const CScript& scriptPubKey, bool fStrict, ScriptError& err) { // Create dummy to/from transactions: CMutableTransaction txFrom;