![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <addresstype.h>#include <coins.h>#include <consensus/consensus.h>#include <consensus/tx_verify.h>#include <key.h>#include <pubkey.h>#include <script/interpreter.h>#include <script/script.h>#include <script/solver.h>#include <test/util/setup_common.h>#include <uint256.h>#include <vector>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Functions | |
| static std::vector< unsigned char > | Serialize (const CScript &s) |
| BOOST_AUTO_TEST_CASE (GetSigOpCount) | |
| static ScriptError | VerifyWithFlag (const CTransaction &output, const CMutableTransaction &input, script_verify_flags flags) |
| Verifies script execution of the zeroth scriptPubKey of tx output and zeroth scriptSig and witness of tx input. | |
| static void | BuildTxs (CMutableTransaction &spendingTx, CCoinsViewCache &coins, CMutableTransaction &creationTx, const CScript &scriptPubKey, const CScript &scriptSig, const CScriptWitness &witness) |
| Builds a creationTx from scriptPubKey and a spendingTx from scriptSig and witness such that spendingTx spends output zero of creationTx. | |
| BOOST_AUTO_TEST_CASE (GetTxSigOpCost) | |
| BOOST_AUTO_TEST_CASE | ( | GetSigOpCount | ) |
| BOOST_AUTO_TEST_CASE | ( | GetTxSigOpCost | ) |
|
static |
Builds a creationTx from scriptPubKey and a spendingTx from scriptSig and witness such that spendingTx spends output zero of creationTx.
Also inserts creationTx's output into the coins view.
Definition at line 87 of file sigopcount_tests.cpp.
|
static |
|
static |
Verifies script execution of the zeroth scriptPubKey of tx output and zeroth scriptSig and witness of tx input.
Definition at line 72 of file sigopcount_tests.cpp.