#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/tx_check.h>
#include <consensus/validation.h>
#include <core_io.h>
#include <key.h>
#include <policy/policy.h>
#include <policy/settings.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/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 <util/transaction_identifier.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.
|
typedef std::vector< unsigned char > | valtype |
|
|
unsigned int | ParseScriptFlags (std::string strFlags) |
|
bool | CheckMapFlagNames () |
|
std::string | FormatScriptFlags (unsigned int flags) |
|
bool | CheckTxScripts (const CTransaction &tx, const std::map< COutPoint, CScript > &map_prevout_scriptPubKeys, const std::map< COutPoint, int64_t > &map_prevout_values, unsigned int flags, const PrecomputedTransactionData &txdata, const std::string &strTest, bool expect_valid) |
|
unsigned int | TrimFlags (unsigned int flags) |
|
unsigned int | FillFlags (unsigned int flags) |
|
std::set< unsigned int > | ExcludeIndividualFlags (unsigned int 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, uint32_t 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) |
|
◆ valtype
typedef std::vector<unsigned char> valtype |
◆ BOOST_AUTO_TEST_CASE() [1/9]
BOOST_AUTO_TEST_CASE |
( |
basic_transaction_tests |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/9]
BOOST_AUTO_TEST_CASE |
( |
test_big_witness_transaction |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [3/9]
BOOST_AUTO_TEST_CASE |
( |
test_Get |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [4/9]
BOOST_AUTO_TEST_CASE |
( |
test_IsStandard |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [5/9]
BOOST_AUTO_TEST_CASE |
( |
test_witness |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [6/9]
BOOST_AUTO_TEST_CASE |
( |
tx_invalid |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [7/9]
BOOST_AUTO_TEST_CASE |
( |
tx_no_inputs |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [8/9]
BOOST_AUTO_TEST_CASE |
( |
tx_oversized |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [9/9]
BOOST_AUTO_TEST_CASE |
( |
tx_valid |
| ) |
|
◆ CheckMapFlagNames()
bool CheckMapFlagNames |
( |
| ) |
|
◆ CheckTxScripts()
◆ CheckWithFlag()
◆ CombineSignatures()
◆ CreateCreditAndSpend()
◆ ExcludeIndividualFlags()
std::set< unsigned int > ExcludeIndividualFlags |
( |
unsigned int |
flags | ) |
|
◆ FillFlags()
unsigned int FillFlags |
( |
unsigned int |
flags | ) |
|
◆ FormatScriptFlags()
std::string FormatScriptFlags |
( |
unsigned int |
flags | ) |
|
◆ ParseScriptFlags()
unsigned int ParseScriptFlags |
( |
std::string |
strFlags | ) |
|
◆ PushAll()
◆ ReplaceRedeemScript()
static void ReplaceRedeemScript |
( |
CScript & |
script, |
|
|
const CScript & |
redeemScript |
|
) |
| |
|
static |
◆ TrimFlags()
unsigned int TrimFlags |
( |
unsigned int |
flags | ) |
|
◆ g_bare_multi
◆ g_dust
◆ mapFlagNames
std::map<std::string, unsigned int> mapFlagNames |
|
static |
Initial value:= {
}
@ SCRIPT_VERIFY_NULLDUMMY
@ SCRIPT_VERIFY_SIGPUSHONLY
@ SCRIPT_VERIFY_DISCOURAGE_OP_SUCCESS
@ SCRIPT_VERIFY_CONST_SCRIPTCODE
@ SCRIPT_VERIFY_MINIMALIF
@ SCRIPT_VERIFY_CHECKLOCKTIMEVERIFY
@ SCRIPT_VERIFY_WITNESS_PUBKEYTYPE
@ SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_TAPROOT_VERSION
@ SCRIPT_VERIFY_STRICTENC
@ SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_PUBKEYTYPE
@ SCRIPT_VERIFY_CLEANSTACK
@ SCRIPT_VERIFY_MINIMALDATA
@ SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS
@ SCRIPT_VERIFY_CHECKSEQUENCEVERIFY
@ SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM
Definition at line 51 of file transaction_tests.cpp.