Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-tx.cpp
Show First 20 Lines • Show All 709 Lines • ▼ Show 20 Lines | if (command == "nversion") { | ||||
MutateTxDelInput(tx, commandVal); | MutateTxDelInput(tx, commandVal); | ||||
} else if (command == "in") { | } else if (command == "in") { | ||||
MutateTxAddInput(tx, commandVal); | MutateTxAddInput(tx, commandVal); | ||||
} else if (command == "delout") { | } else if (command == "delout") { | ||||
MutateTxDelOutput(tx, commandVal); | MutateTxDelOutput(tx, commandVal); | ||||
} else if (command == "outaddr") { | } else if (command == "outaddr") { | ||||
MutateTxAddOutAddr(tx, commandVal, chainParams); | MutateTxAddOutAddr(tx, commandVal, chainParams); | ||||
} else if (command == "outpubkey") { | } else if (command == "outpubkey") { | ||||
if (!ecc) { | |||||
ecc.reset(new Secp256k1Init()); | ecc.reset(new Secp256k1Init()); | ||||
} | |||||
MutateTxAddOutPubKey(tx, commandVal); | MutateTxAddOutPubKey(tx, commandVal); | ||||
} else if (command == "outmultisig") { | } else if (command == "outmultisig") { | ||||
if (!ecc) { | |||||
ecc.reset(new Secp256k1Init()); | ecc.reset(new Secp256k1Init()); | ||||
} | |||||
MutateTxAddOutMultiSig(tx, commandVal); | MutateTxAddOutMultiSig(tx, commandVal); | ||||
} else if (command == "outscript") { | } else if (command == "outscript") { | ||||
MutateTxAddOutScript(tx, commandVal); | MutateTxAddOutScript(tx, commandVal); | ||||
} else if (command == "outdata") { | } else if (command == "outdata") { | ||||
MutateTxAddOutData(tx, commandVal); | MutateTxAddOutData(tx, commandVal); | ||||
} else if (command == "sign") { | } else if (command == "sign") { | ||||
if (!ecc) { | |||||
ecc.reset(new Secp256k1Init()); | ecc.reset(new Secp256k1Init()); | ||||
} | |||||
MutateTxSign(tx, commandVal); | MutateTxSign(tx, commandVal); | ||||
} else if (command == "load") { | } else if (command == "load") { | ||||
RegisterLoad(commandVal); | RegisterLoad(commandVal); | ||||
} else if (command == "set") { | } else if (command == "set") { | ||||
RegisterSet(commandVal); | RegisterSet(commandVal); | ||||
} else { | } else { | ||||
throw std::runtime_error("unknown command"); | throw std::runtime_error("unknown command"); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |