diff --git a/src/script/sign.cpp b/src/script/sign.cpp index 66dc38e95d92..1202df17b136 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -27,7 +27,7 @@ bool TransactionSignatureCreator::CreateSig(std::vector& vchSig, uint256 hash; try { hash = SignatureHash(scriptCode, *txTo, nIn, nHashType, amount, sigversion); - } catch (std::logic_error ex) { + } catch (const std::logic_error& ex) { return false; }