Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/blockfilter.cpp
- This file was moved from src/test/lib/blockfilter.cpp.
// Copyright (c) 2019 The Bitcoin Core developers | // Copyright (c) 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 <test/lib/blockfilter.h> | #include <test/util/blockfilter.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <validation.h> | #include <validation.h> | ||||
bool ComputeFilter(BlockFilterType filter_type, const CBlockIndex *block_index, | bool ComputeFilter(BlockFilterType filter_type, const CBlockIndex *block_index, | ||||
BlockFilter &filter) { | BlockFilter &filter) { | ||||
CBlock block; | CBlock block; | ||||
if (!ReadBlockFromDisk(block, block_index->GetBlockPos(), | if (!ReadBlockFromDisk(block, block_index->GetBlockPos(), | ||||
Show All 13 Lines |