diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-06-04 22:45:22 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-06-05 00:52:36 +0200 |
commit | 90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb (patch) | |
tree | 1f830a3679ef00b774dc8ac6b216366f2ed52a68 /src/script | |
parent | f259263a7b11c6ff925851985ef0082b0a190a57 (diff) |
Limit variable scope
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/sign.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index 5682418546..123f88bd6f 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -141,10 +141,9 @@ static CScript PushAll(const std::vector<valtype>& values) bool ProduceSignature(const BaseSignatureCreator& creator, const CScript& fromPubKey, SignatureData& sigdata) { CScript script = fromPubKey; - bool solved = true; std::vector<valtype> result; txnouttype whichType; - solved = SignStep(creator, script, result, whichType, SIGVERSION_BASE); + bool solved = SignStep(creator, script, result, whichType, SIGVERSION_BASE); bool P2SH = false; CScript subscript; sigdata.scriptWitness.stack.clear(); |