10#include <test/util/setup_common.h>
12#include <boost/test/unit_test.hpp>
29 std::numeric_limits<uint32_t>::max());
34 for (
size_t i = 0; i < 100; i++) {
45 for (
size_t i = 0; i < 100; i++) {
54 for (
size_t i = 0; i < 100; i++) {
65 std::vector<ProofRef>
proofs;
66 for (
size_t i = 0; i < 100; i++) {
68 proofs.push_back(std::move(proof));
#define Assert(val)
Identity function.
Chainstate stores and provides an API to update our local knowledge of the current best chain.
ProofRef buildRandomProof(Chainstate &active_chainstate, uint32_t score, int height, const CKey &masterKey)
constexpr uint32_t MIN_VALID_PROOF_SCORE
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
BOOST_AUTO_TEST_CASE(proof_shared_pointer_comparator)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Compare proofs by score, then by id in case of equality.