diff options
| author | MarcoFalke <[email protected]> | 2016-08-25 12:48:23 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-08-25 14:59:38 +0200 |
| commit | fa6dc9f0e5eac8ec473b63adfd43635005778f46 (patch) | |
| tree | 6628086e259f0e470cd3160becc11ec9873ede35 /src/bitcoin-tx.cpp | |
| parent | Merge #8487: Persist the datadir after option reset (diff) | |
| download | discoin-fa6dc9f0e5eac8ec473b63adfd43635005778f46.tar.xz discoin-fa6dc9f0e5eac8ec473b63adfd43635005778f46.zip | |
Remove unused variables
Diffstat (limited to 'src/bitcoin-tx.cpp')
| -rw-r--r-- | src/bitcoin-tx.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 8e8ac4745..5cf9b043e 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -395,10 +395,8 @@ static void MutateTxSign(CMutableTransaction& tx, const string& flagStr) if (!registers.count("privatekeys")) throw runtime_error("privatekeys register variable must be set."); - bool fGivenKeys = false; CBasicKeyStore tempKeystore; UniValue keysObj = registers["privatekeys"]; - fGivenKeys = true; for (unsigned int kidx = 0; kidx < keysObj.size(); kidx++) { if (!keysObj[kidx].isStr()) @@ -454,7 +452,7 @@ static void MutateTxSign(CMutableTransaction& tx, const string& flagStr) // if redeemScript given and private keys given, // add redeemScript to the tempKeystore so it can be signed: - if (fGivenKeys && (scriptPubKey.IsPayToScriptHash() || scriptPubKey.IsPayToWitnessScriptHash()) && + if ((scriptPubKey.IsPayToScriptHash() || scriptPubKey.IsPayToWitnessScriptHash()) && prevOut.exists("redeemScript")) { UniValue v = prevOut["redeemScript"]; vector<unsigned char> rsData(ParseHexUV(v, "redeemScript")); |