6#include <chainparams.h>
10#include <validation.h>
12#include <boost/test/unit_test.hpp>
25 for (
const auto& txn : m_coinbase_txns) {
41 for (
const auto& txn : m_coinbase_txns) {
44 }
else if (
tx_disk->GetHash() != txn->GetHash()) {
50 for (
int i = 0; i < 10; i++) {
52 std::vector<CMutableTransaction>
no_txns;
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
const CChainParams & Params()
Return the currently selected parameters.
std::vector< CTransactionRef > vtx
const CBlock & GenesisBlock() const
Serialized script, used inside transaction inputs and outputs.
The basic transaction that is broadcasted on the network and contained in blocks.
const Txid & GetHash() const LIFETIMEBOUND
TxIndex is used to look up transactions included in the blockchain by hash.
BOOST_AUTO_TEST_SUITE_END()
std::unique_ptr< Chain > MakeChain(node::NodeContext &node)
Return implementation of Chain interface.
#define BOOST_CHECK(expr)
std::shared_ptr< const CTransaction > CTransactionRef
Testing fixture that pre-creates a 100-block REGTEST-mode block chain.
BOOST_FIXTURE_TEST_CASE(txindex_initial_sync, TestChain100Setup)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.