Changeset View
Changeset View
Standalone View
Standalone View
src/test/blockindex_tests.cpp
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin 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 "blockvalidity.h" | #include <blockvalidity.h> | ||||
#include "chain.h" | #include <chain.h> | ||||
#include "diskblockpos.h" | #include <diskblockpos.h> | ||||
#include "uint256.h" | #include <uint256.h> | ||||
#include "test/test_bitcoin.h" | #include <test/test_bitcoin.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
#include <limits> | #include <limits> | ||||
BOOST_FIXTURE_TEST_SUITE(blockindex_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(blockindex_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(get_block_header) { | BOOST_AUTO_TEST_CASE(get_block_header) { | ||||
const int32_t expectedVersion = 4; | const int32_t expectedVersion = 4; | ||||
const uint256 expectedMerkleRoot = uint256(); | const uint256 expectedMerkleRoot = uint256(); | ||||
const uint32_t expectedBlockTime = 123; | const uint32_t expectedBlockTime = 123; | ||||
▲ Show 20 Lines • Show All 404 Lines • Show Last 20 Lines |