Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/block_utils.cpp
- This file was added.
// Copyright (c) 2021 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#include <test/util/block_utils.h> | |||||
#include <boost/test/unit_test.hpp> | |||||
void SetMTP(std::array<CBlockIndex, 12> &blocks, int64_t mtp) { | |||||
size_t len = blocks.size(); | |||||
for (size_t i = 0; i < len; ++i) { | |||||
blocks[i].nTime = mtp + (i - (len / 2)); | |||||
} | |||||
BOOST_CHECK_EQUAL(blocks.back().GetMedianTimePast(), mtp); | |||||
Fabien: This means that the lib cannot be used outside of the unit tests context, so no bench nor fuzz. | |||||
PiRKAuthorUnsubmitted Done Inline ActionsThanks. PiRK: Thanks. | |||||
} |
This means that the lib cannot be used outside of the unit tests context, so no bench nor fuzz. This is where your linker issue comes from.