Changeset View
Changeset View
Standalone View
Standalone View
src/test/merkle_tests.cpp
// Copyright (c) 2015-2019 The Bitcoin Core developers | // Copyright (c) 2015-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 <consensus/merkle.h> | #include <consensus/merkle.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <test/test_bitcoin.h> | #include <test/setup_common.h> | ||||
#include <boost/test/unit_test.hpp> | #include <boost/test/unit_test.hpp> | ||||
BOOST_FIXTURE_TEST_SUITE(merkle_tests, TestingSetup) | BOOST_FIXTURE_TEST_SUITE(merkle_tests, TestingSetup) | ||||
static uint256 | static uint256 | ||||
ComputeMerkleRootFromBranch(const uint256 &leaf, | ComputeMerkleRootFromBranch(const uint256 &leaf, | ||||
const std::vector<uint256> &vMerkleBranch, | const std::vector<uint256> &vMerkleBranch, | ||||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |