mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Make it clear which functions that are intended to be translation unit local
Do not share functions that are meant to be translation unit local with other translation units. Use internal linkage for those consistently.
This commit is contained in:
parent
7eb7076f70
commit
c3f34d06be
43 changed files with 226 additions and 226 deletions
|
|
@ -99,7 +99,7 @@ static ScriptErrorDesc script_errors[]={
|
|||
{SCRIPT_ERR_WITNESS_PUBKEYTYPE, "WITNESS_PUBKEYTYPE"},
|
||||
};
|
||||
|
||||
const char *FormatScriptError(ScriptError_t err)
|
||||
static const char *FormatScriptError(ScriptError_t err)
|
||||
{
|
||||
for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i)
|
||||
if (script_errors[i].err == err)
|
||||
|
|
@ -108,7 +108,7 @@ const char *FormatScriptError(ScriptError_t err)
|
|||
return "";
|
||||
}
|
||||
|
||||
ScriptError_t ParseScriptError(const std::string &name)
|
||||
static ScriptError_t ParseScriptError(const std::string &name)
|
||||
{
|
||||
for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i)
|
||||
if (script_errors[i].name == name)
|
||||
|
|
@ -1028,7 +1028,7 @@ BOOST_AUTO_TEST_CASE(script_PushData)
|
|||
BOOST_CHECK_MESSAGE(err == SCRIPT_ERR_OK, ScriptErrorString(err));
|
||||
}
|
||||
|
||||
CScript
|
||||
static CScript
|
||||
sign_multisig(const CScript& scriptPubKey, const std::vector<CKey>& keys, const CTransaction& transaction)
|
||||
{
|
||||
uint256 hash = SignatureHash(scriptPubKey, transaction, 0, SIGHASH_ALL, 0, SigVersion::BASE);
|
||||
|
|
@ -1052,7 +1052,7 @@ sign_multisig(const CScript& scriptPubKey, const std::vector<CKey>& keys, const
|
|||
}
|
||||
return result;
|
||||
}
|
||||
CScript
|
||||
static CScript
|
||||
sign_multisig(const CScript& scriptPubKey, const CKey& key, const CTransaction& transaction)
|
||||
{
|
||||
std::vector<CKey> keys;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue