Skip to content

Commit 7466991

Browse files
Remove redundant check (!ecc is always true)
1 parent 55224af commit 7466991

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bitcoin-tx.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,18 +682,18 @@ static void MutateTx(CMutableTransaction& tx, const std::string& command,
682682
else if (command == "outaddr")
683683
MutateTxAddOutAddr(tx, commandVal);
684684
else if (command == "outpubkey") {
685-
if (!ecc) { ecc.reset(new Secp256k1Init()); }
685+
ecc.reset(new Secp256k1Init());
686686
MutateTxAddOutPubKey(tx, commandVal);
687687
} else if (command == "outmultisig") {
688-
if (!ecc) { ecc.reset(new Secp256k1Init()); }
688+
ecc.reset(new Secp256k1Init());
689689
MutateTxAddOutMultiSig(tx, commandVal);
690690
} else if (command == "outscript")
691691
MutateTxAddOutScript(tx, commandVal);
692692
else if (command == "outdata")
693693
MutateTxAddOutData(tx, commandVal);
694694

695695
else if (command == "sign") {
696-
if (!ecc) { ecc.reset(new Secp256k1Init()); }
696+
ecc.reset(new Secp256k1Init());
697697
MutateTxSign(tx, commandVal);
698698
}
699699

0 commit comments

Comments
 (0)