Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-tx.cpp
// Copyright (c) 2009-2019 The Bitcoin Core developers | // Copyright (c) 2009-2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <clientversion.h> | #include <clientversion.h> | ||||
#include <coins.h> | #include <coins.h> | ||||
#include <consensus/consensus.h> | #include <consensus/consensus.h> | ||||
#include <core_io.h> | #include <core_io.h> | ||||
#include <currencyunit.h> | |||||
#include <key_io.h> | #include <key_io.h> | ||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <rpc/util.h> | #include <rpc/util.h> | ||||
#include <script/script.h> | #include <script/script.h> | ||||
#include <script/sign.h> | #include <script/sign.h> | ||||
#include <script/signingprovider.h> | #include <script/signingprovider.h> | ||||
#include <util/moneystr.h> | #include <util/moneystr.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
Show All 13 Lines | |||||
static std::map<std::string, UniValue> registers; | static std::map<std::string, UniValue> registers; | ||||
static const int CONTINUE_EXECUTION = -1; | static const int CONTINUE_EXECUTION = -1; | ||||
const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | const std::function<std::string(const char *)> G_TRANSLATION_FUN = nullptr; | ||||
static void SetupBitcoinTxArgs(ArgsManager &argsman) { | static void SetupBitcoinTxArgs(ArgsManager &argsman) { | ||||
SetupHelpOptions(argsman); | SetupHelpOptions(argsman); | ||||
SetupCurrencyUnitOptions(argsman); | |||||
argsman.AddArg("-create", "Create new, empty TX.", ArgsManager::ALLOW_ANY, | argsman.AddArg("-create", "Create new, empty TX.", ArgsManager::ALLOW_ANY, | ||||
OptionsCategory::OPTIONS); | OptionsCategory::OPTIONS); | ||||
argsman.AddArg("-json", "Select JSON output", ArgsManager::ALLOW_ANY, | argsman.AddArg("-json", "Select JSON output", ArgsManager::ALLOW_ANY, | ||||
OptionsCategory::OPTIONS); | OptionsCategory::OPTIONS); | ||||
argsman.AddArg( | argsman.AddArg( | ||||
"-txid", | "-txid", | ||||
"Output only the hex-encoded transaction id of the resultant " | "Output only the hex-encoded transaction id of the resultant " | ||||
"transaction.", | "transaction.", | ||||
▲ Show 20 Lines • Show All 843 Lines • Show Last 20 Lines |