11#include <boost/test/unit_test.hpp>
19 mtx.vin[0].nSequence = id;
56 const auto it{std::ranges::find(
infos, tx->GetWitnessHash(), [](
const auto& info) { return info.tx->GetWitnessHash(); })};
61 const auto infos{
pb.GetBroadcastInfo()};
102 const auto infos{
pb.GetBroadcastInfo()};
A combination of a network address (CNetAddr) and a (TCP) port.
Store a list of transactions to be broadcast privately.
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
static const std::string addr1
static const std::string addr2
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
static CTransactionRef MakeTransactionRef(Tx &&txIn)
std::shared_ptr< const CTransaction > CTransactionRef
static CTransactionRef MakeDummyTx(uint32_t id, size_t num_witness)
BOOST_AUTO_TEST_CASE(basic)
A mutable version of CTransaction.
std::vector< std::vector< unsigned char > > stack
BOOST_CHECK_NE(OneL.ToString(), ArrayToString(ZeroArray, 32))
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.