![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <test/data/tx_invalid.json.h>#include <test/data/tx_valid.json.h>#include <test/util/setup_common.h>#include <checkqueue.h>#include <clientversion.h>#include <consensus/amount.h>#include <consensus/consensus.h>#include <consensus/tx_check.h>#include <consensus/tx_verify.h>#include <consensus/validation.h>#include <core_io.h>#include <key.h>#include <policy/policy.h>#include <policy/settings.h>#include <primitives/transaction_identifier.h>#include <script/interpreter.h>#include <script/script.h>#include <script/script_error.h>#include <script/sigcache.h>#include <script/sign.h>#include <script/signingprovider.h>#include <script/solver.h>#include <streams.h>#include <test/util/common.h>#include <test/util/json.h>#include <test/util/random.h>#include <test/util/script.h>#include <test/util/transaction_utils.h>#include <util/strencodings.h>#include <util/string.h>#include <validation.h>#include <functional>#include <map>#include <string>#include <boost/test/unit_test.hpp>#include <univalue.h>Go to the source code of this file.
Typedefs | |
| typedef std::vector< unsigned char > | valtype |
Functions | |
| script_verify_flags | ParseScriptFlags (std::string strFlags) |
| bool | CheckMapFlagNames () |
| bool | CheckTxScripts (const CTransaction &tx, const std::map< COutPoint, CScript > &map_prevout_scriptPubKeys, const std::map< COutPoint, int64_t > &map_prevout_values, script_verify_flags flags, const PrecomputedTransactionData &txdata, const std::string &strTest, bool expect_valid) |
| script_verify_flags | TrimFlags (script_verify_flags flags) |
| script_verify_flags | FillFlags (script_verify_flags flags) |
| std::set< script_verify_flags > | ExcludeIndividualFlags (script_verify_flags flags) |
| BOOST_AUTO_TEST_CASE (tx_valid) | |
| BOOST_AUTO_TEST_CASE (tx_invalid) | |
| BOOST_AUTO_TEST_CASE (tx_no_inputs) | |
| BOOST_AUTO_TEST_CASE (tx_oversized) | |
| BOOST_AUTO_TEST_CASE (basic_transaction_tests) | |
| BOOST_AUTO_TEST_CASE (test_Get) | |
| static void | CreateCreditAndSpend (const FillableSigningProvider &keystore, const CScript &outscript, CTransactionRef &output, CMutableTransaction &input, bool success=true) |
| static void | CheckWithFlag (const CTransactionRef &output, const CMutableTransaction &input, script_verify_flags flags, bool success) |
| static CScript | PushAll (const std::vector< valtype > &values) |
| static void | ReplaceRedeemScript (CScript &script, const CScript &redeemScript) |
| BOOST_AUTO_TEST_CASE (test_big_witness_transaction) | |
| SignatureData | CombineSignatures (const CMutableTransaction &input1, const CMutableTransaction &input2, const CTransactionRef tx) |
| BOOST_AUTO_TEST_CASE (test_witness) | |
| BOOST_AUTO_TEST_CASE (test_IsStandard) | |
| BOOST_AUTO_TEST_CASE (max_standard_legacy_sigops) | |
| BOOST_AUTO_TEST_CASE (checktxinputs_invalid_transactions_test) | |
| BOOST_AUTO_TEST_CASE (getvalueout_out_of_range_throws) | |
| BOOST_AUTO_TEST_CASE (spends_witness_prog) | |
| Sanity check the return value of SpendsNonAnchorWitnessProg for various output types. | |
| std::vector< std::string > | SplitString (std::string_view str, char sep) |
| template<typename T> | |
| std::string | ToString (const T &t) |
| Locale-independent version of std::to_string. | |
Variables | |
| static CFeeRate | g_dust {DUST_RELAY_TX_FEE} |
| static bool | g_bare_multi {DEFAULT_PERMIT_BAREMULTISIG} |
| static const std::map< std::string, script_verify_flag_name > & | mapFlagNames = ScriptFlagNamesToEnum() |
| typedef std::vector<unsigned char> valtype |
Definition at line 50 of file transaction_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | basic_transaction_tests | ) |
| BOOST_AUTO_TEST_CASE | ( | checktxinputs_invalid_transactions_test | ) |
| BOOST_AUTO_TEST_CASE | ( | getvalueout_out_of_range_throws | ) |
| BOOST_AUTO_TEST_CASE | ( | max_standard_legacy_sigops | ) |
| BOOST_AUTO_TEST_CASE | ( | spends_witness_prog | ) |
Sanity check the return value of SpendsNonAnchorWitnessProg for various output types.
Definition at line 1168 of file transaction_tests.cpp.
| BOOST_AUTO_TEST_CASE | ( | test_big_witness_transaction | ) |
| BOOST_AUTO_TEST_CASE | ( | test_Get | ) |
| BOOST_AUTO_TEST_CASE | ( | test_IsStandard | ) |
| BOOST_AUTO_TEST_CASE | ( | test_witness | ) |
| BOOST_AUTO_TEST_CASE | ( | tx_invalid | ) |
| BOOST_AUTO_TEST_CASE | ( | tx_no_inputs | ) |
| BOOST_AUTO_TEST_CASE | ( | tx_oversized | ) |
| BOOST_AUTO_TEST_CASE | ( | tx_valid | ) |
| bool CheckMapFlagNames | ( | ) |
| bool CheckTxScripts | ( | const CTransaction & | tx, |
| const std::map< COutPoint, CScript > & | map_prevout_scriptPubKeys, | ||
| const std::map< COutPoint, int64_t > & | map_prevout_values, | ||
| script_verify_flags | flags, | ||
| const PrecomputedTransactionData & | txdata, | ||
| const std::string & | strTest, | ||
| bool | expect_valid ) |
Definition at line 87 of file transaction_tests.cpp.
|
static |
Definition at line 457 of file transaction_tests.cpp.
| SignatureData CombineSignatures | ( | const CMutableTransaction & | input1, |
| const CMutableTransaction & | input2, | ||
| const CTransactionRef | tx ) |
|
static |
Definition at line 418 of file transaction_tests.cpp.
| std::set< script_verify_flags > ExcludeIndividualFlags | ( | script_verify_flags | flags | ) |
Definition at line 148 of file transaction_tests.cpp.
| script_verify_flags FillFlags | ( | script_verify_flags | flags | ) |
Definition at line 133 of file transaction_tests.cpp.
| script_verify_flags ParseScriptFlags | ( | std::string | strFlags | ) |
Definition at line 57 of file transaction_tests.cpp.
Definition at line 465 of file transaction_tests.cpp.
Definition at line 482 of file transaction_tests.cpp.
|
inlinenodiscard |
| std::string util::ToString | ( | const T & | t | ) |
| script_verify_flags TrimFlags | ( | script_verify_flags | flags | ) |
Definition at line 122 of file transaction_tests.cpp.
|
static |
Definition at line 53 of file transaction_tests.cpp.
|
static |
Definition at line 52 of file transaction_tests.cpp.
|
static |
Definition at line 55 of file transaction_tests.cpp.