diff options
| author | practicalswift <[email protected]> | 2017-06-04 22:45:22 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-06-05 00:52:36 +0200 |
| commit | 90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb (patch) | |
| tree | 1f830a3679ef00b774dc8ac6b216366f2ed52a68 /src/script/sign.cpp | |
| parent | Merge #10447: Make bitcoind invalid argument error message specific (diff) | |
| download | discoin-90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb.tar.xz discoin-90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb.zip | |
Limit variable scope
Diffstat (limited to 'src/script/sign.cpp')
| -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 568241854..123f88bd6 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(); |