mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Remove redundant check (!ecc is always true)
This commit is contained in:
parent
55224af6bd
commit
7466991670
@ -682,10 +682,10 @@ static void MutateTx(CMutableTransaction& tx, const std::string& command,
|
||||
else if (command == "outaddr")
|
||||
MutateTxAddOutAddr(tx, commandVal);
|
||||
else if (command == "outpubkey") {
|
||||
if (!ecc) { ecc.reset(new Secp256k1Init()); }
|
||||
ecc.reset(new Secp256k1Init());
|
||||
MutateTxAddOutPubKey(tx, commandVal);
|
||||
} else if (command == "outmultisig") {
|
||||
if (!ecc) { ecc.reset(new Secp256k1Init()); }
|
||||
ecc.reset(new Secp256k1Init());
|
||||
MutateTxAddOutMultiSig(tx, commandVal);
|
||||
} else if (command == "outscript")
|
||||
MutateTxAddOutScript(tx, commandVal);
|
||||
@ -693,7 +693,7 @@ static void MutateTx(CMutableTransaction& tx, const std::string& command,
|
||||
MutateTxAddOutData(tx, commandVal);
|
||||
|
||||
else if (command == "sign") {
|
||||
if (!ecc) { ecc.reset(new Secp256k1Init()); }
|
||||
ecc.reset(new Secp256k1Init());
|
||||
MutateTxSign(tx, commandVal);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user