Skip to content

Commit fad5bc4

Browse files
author
MacroFake
committed
test: Add missing static to IsStandardTx helper
1 parent 9155f9b commit fad5bc4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/script_p2sh_tests.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,18 @@
1818
#include <boost/test/unit_test.hpp>
1919

2020
// Helpers:
21-
bool IsStandardTx(const CTransaction& tx, std::string& reason)
21+
static bool IsStandardTx(const CTransaction& tx, std::string& reason)
2222
{
2323
return IsStandardTx(tx, std::nullopt, DEFAULT_PERMIT_BAREMULTISIG, CFeeRate{DUST_RELAY_TX_FEE}, reason);
2424
}
2525

26-
static std::vector<unsigned char>
27-
Serialize(const CScript& s)
26+
static std::vector<unsigned char> Serialize(const CScript& s)
2827
{
2928
std::vector<unsigned char> sSerialized(s.begin(), s.end());
3029
return sSerialized;
3130
}
3231

33-
static bool
34-
Verify(const CScript& scriptSig, const CScript& scriptPubKey, bool fStrict, ScriptError& err)
32+
static bool Verify(const CScript& scriptSig, const CScript& scriptPubKey, bool fStrict, ScriptError& err)
3533
{
3634
// Create dummy to/from transactions:
3735
CMutableTransaction txFrom;

0 commit comments

Comments
 (0)