mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 13:43:43 +01:00
refactor: Add missing {} around error() calls
This is required for the next commit to be correct.
This commit is contained in:
@@ -157,8 +157,9 @@ bool FillableSigningProvider::GetKey(const CKeyID &address, CKey &keyOut) const
|
||||
|
||||
bool FillableSigningProvider::AddCScript(const CScript& redeemScript)
|
||||
{
|
||||
if (redeemScript.size() > MAX_SCRIPT_ELEMENT_SIZE)
|
||||
if (redeemScript.size() > MAX_SCRIPT_ELEMENT_SIZE) {
|
||||
return error("FillableSigningProvider::AddCScript(): redeemScripts > %i bytes are invalid", MAX_SCRIPT_ELEMENT_SIZE);
|
||||
}
|
||||
|
||||
LOCK(cs_KeyStore);
|
||||
mapScripts[CScriptID(redeemScript)] = redeemScript;
|
||||
|
||||
Reference in New Issue
Block a user