diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -715,24 +715,17 @@ } else if (command == "outaddr") { MutateTxAddOutAddr(tx, commandVal, chainParams); } 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); } else if (command == "outdata") { MutateTxAddOutData(tx, commandVal); } else if (command == "sign") { - if (!ecc) { - ecc.reset(new Secp256k1Init()); - } - + ecc.reset(new Secp256k1Init()); MutateTxSign(tx, commandVal); } else if (command == "load") { RegisterLoad(commandVal);