0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-06 14:19:59 -05:00

test: Add missing static to IsStandardTx helper

This commit is contained in:
MacroFake 2022-08-03 11:23:11 +02:00
parent 9155f9b7af
commit fad5bc432b
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -18,20 +18,18 @@
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
// Helpers: // Helpers:
bool IsStandardTx(const CTransaction& tx, std::string& reason) static bool IsStandardTx(const CTransaction& tx, std::string& reason)
{ {
return IsStandardTx(tx, std::nullopt, DEFAULT_PERMIT_BAREMULTISIG, CFeeRate{DUST_RELAY_TX_FEE}, reason); return IsStandardTx(tx, std::nullopt, DEFAULT_PERMIT_BAREMULTISIG, CFeeRate{DUST_RELAY_TX_FEE}, reason);
} }
static std::vector<unsigned char> static std::vector<unsigned char> Serialize(const CScript& s)
Serialize(const CScript& s)
{ {
std::vector<unsigned char> sSerialized(s.begin(), s.end()); std::vector<unsigned char> sSerialized(s.begin(), s.end());
return sSerialized; return sSerialized;
} }
static bool static bool Verify(const CScript& scriptSig, const CScript& scriptPubKey, bool fStrict, ScriptError& err)
Verify(const CScript& scriptSig, const CScript& scriptPubKey, bool fStrict, ScriptError& err)
{ {
// Create dummy to/from transactions: // Create dummy to/from transactions:
CMutableTransaction txFrom; CMutableTransaction txFrom;