Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <bitcoin-build-config.h>
#include <chainparamsbase.h>
#include <clientversion.h>
#include <coins.h>
#include <common/args.h>
#include <common/system.h>
#include <compat/compat.h>
#include <consensus/amount.h>
#include <consensus/consensus.h>
#include <core_io.h>
#include <key_io.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <univalue.h>
#include <util/exception.h>
#include <util/fs.h>
#include <util/moneystr.h>
#include <util/rbf.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/translation.h>
#include <cstdio>
#include <functional>
#include <memory>
Go to the source code of this file.
Functions | |
static void | SetupBitcoinTxArgs (ArgsManager &argsman) |
static int | AppInitRawTx (int argc, char *argv[]) |
static void | RegisterSetJson (const std::string &key, const std::string &rawJson) |
static void | RegisterSet (const std::string &strInput) |
static void | RegisterLoad (const std::string &strInput) |
static CAmount | ExtractAndValidateValue (const std::string &strValue) |
static void | MutateTxVersion (CMutableTransaction &tx, const std::string &cmdVal) |
static void | MutateTxLocktime (CMutableTransaction &tx, const std::string &cmdVal) |
static void | MutateTxRBFOptIn (CMutableTransaction &tx, const std::string &strInIdx) |
template<typename T > | |
static T | TrimAndParse (const std::string &int_str, const std::string &err) |
static void | MutateTxAddInput (CMutableTransaction &tx, const std::string &strInput) |
static void | MutateTxAddOutAddr (CMutableTransaction &tx, const std::string &strInput) |
static void | MutateTxAddOutPubKey (CMutableTransaction &tx, const std::string &strInput) |
static void | MutateTxAddOutMultiSig (CMutableTransaction &tx, const std::string &strInput) |
static void | MutateTxAddOutData (CMutableTransaction &tx, const std::string &strInput) |
static void | MutateTxAddOutScript (CMutableTransaction &tx, const std::string &strInput) |
static void | MutateTxDelInput (CMutableTransaction &tx, const std::string &strInIdx) |
static void | MutateTxDelOutput (CMutableTransaction &tx, const std::string &strOutIdx) |
static bool | findSighashFlags (int &flags, const std::string &flagStr) |
static CAmount | AmountFromValue (const UniValue &value) |
static std::vector< unsigned char > | ParseHexUV (const UniValue &v, const std::string &strName) |
static void | MutateTxSign (CMutableTransaction &tx, const std::string &flagStr) |
static void | MutateTx (CMutableTransaction &tx, const std::string &command, const std::string &commandVal) |
static void | OutputTxJSON (const CTransaction &tx) |
static void | OutputTxHash (const CTransaction &tx) |
static void | OutputTxHex (const CTransaction &tx) |
static void | OutputTx (const CTransaction &tx) |
static std::string | readStdin () |
static int | CommandLineRawTx (int argc, char *argv[]) |
if (ret !=CONTINUE_EXECUTION) return ret | |
catch (const std::exception &e) | |
catch (...) | |
Variables | |
static bool | fCreateBlank |
static std::map< std::string, UniValue > | registers |
static const int | CONTINUE_EXECUTION =-1 |
const std::function< std::string(const char *)> | G_TRANSLATION_FUN = nullptr |
Translate string to current locale using Qt. More... | |
static const unsigned int | N_SIGHASH_OPTS = 7 |
static const struct { ... } | sighashOptions [N_SIGHASH_OPTS] |
MAIN_FUNCTION | |
try | |
int | ret = EXIT_FAILURE |
Definition at line 561 of file bitcoin-tx.cpp.
|
static |
catch | ( | ... | ) |
Definition at line 877 of file bitcoin-tx.cpp.
catch | ( | const std::exception & | e | ) |
|
static |
|
static |
Definition at line 203 of file bitcoin-tx.cpp.
|
static |
if | ( | ret ! | = CONTINUE_EXECUTION | ) |
|
static |
Definition at line 703 of file bitcoin-tx.cpp.
|
static |
Definition at line 261 of file bitcoin-tx.cpp.
|
static |
Definition at line 295 of file bitcoin-tx.cpp.
|
static |
Definition at line 435 of file bitcoin-tx.cpp.
|
static |
Definition at line 362 of file bitcoin-tx.cpp.
|
static |
Definition at line 319 of file bitcoin-tx.cpp.
|
static |
Definition at line 465 of file bitcoin-tx.cpp.
|
static |
Definition at line 509 of file bitcoin-tx.cpp.
|
static |
Definition at line 521 of file bitcoin-tx.cpp.
|
static |
Definition at line 222 of file bitcoin-tx.cpp.
|
static |
Definition at line 231 of file bitcoin-tx.cpp.
|
static |
Definition at line 583 of file bitcoin-tx.cpp.
|
static |
Definition at line 212 of file bitcoin-tx.cpp.
|
static |
Definition at line 774 of file bitcoin-tx.cpp.
|
static |
Definition at line 760 of file bitcoin-tx.cpp.
|
static |
Definition at line 767 of file bitcoin-tx.cpp.
|
static |
Definition at line 751 of file bitcoin-tx.cpp.
|
static |
Definition at line 573 of file bitcoin-tx.cpp.
|
static |
Definition at line 784 of file bitcoin-tx.cpp.
|
static |
Definition at line 162 of file bitcoin-tx.cpp.
|
static |
Definition at line 147 of file bitcoin-tx.cpp.
|
static |
Definition at line 136 of file bitcoin-tx.cpp.
|
static |
Definition at line 46 of file bitcoin-tx.cpp.
|
static |
|
static |
Definition at line 42 of file bitcoin-tx.cpp.
|
static |
Definition at line 40 of file bitcoin-tx.cpp.
int flags |
Definition at line 536 of file bitcoin-tx.cpp.
const char* flagStr |
Definition at line 535 of file bitcoin-tx.cpp.
const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr |
Translate string to current locale using Qt.
Translate a message to the native language of the user.
Definition at line 44 of file bitcoin-tx.cpp.
MAIN_FUNCTION |
Definition at line 865 of file bitcoin-tx.cpp.
|
static |
Definition at line 533 of file bitcoin-tx.cpp.
|
static |
Definition at line 41 of file bitcoin-tx.cpp.
return ret = EXIT_FAILURE |
Definition at line 882 of file bitcoin-tx.cpp.
const struct { ... } sighashOptions[N_SIGHASH_OPTS] |
try |
Definition at line 869 of file bitcoin-tx.cpp.