Changeset View
Changeset View
Standalone View
Standalone View
src/test/versionbits_tests.cpp
// Copyright (c) 2014-2019 The Bitcoin Core developers | // Copyright (c) 2014-2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <consensus/params.h> | #include <consensus/params.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
#include <versionbits.h> | #include <versionbits.h> | ||||
#include <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
/* Define a virtual block time, one block per 10 minutes after Nov 14 2014, | /* Define a virtual block time, one block per 10 minutes after Nov 14 2014, | ||||
* 0:55:36am */ | * 0:55:36am */ | ||||
static int32_t TestTime(int nHeight) { | static int32_t TestTime(int nHeight) { | ||||
return 1415926536 + 600 * nHeight; | return 1415926536 + 600 * nHeight; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 570 Lines • Show Last 20 Lines |