#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.
◆ BOOST_AUTO_TEST_CASE() [1/2]
BOOST_AUTO_TEST_CASE |
( |
GetSigOpCount |
| ) |
|
◆ BOOST_AUTO_TEST_CASE() [2/2]
BOOST_AUTO_TEST_CASE |
( |
GetTxSigOpCost |
| ) |
|
◆ BuildTxs()
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.
◆ Serialize()
static std::vector< unsigned char > Serialize |
( |
const CScript & |
s | ) |
|
|
static |
◆ VerifyWithFlag()
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.