Changeset View
Changeset View
Standalone View
Standalone View
src/index/blockfilterindex.cpp
// Copyright (c) 2018 The Bitcoin Core developers | // Copyright (c) 2018 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 <dbwrapper.h> | #include <dbwrapper.h> | ||||
#include <index/blockfilterindex.h> | #include <index/blockfilterindex.h> | ||||
#include <node/blockstorage.h> | |||||
#include <primitives/blockhash.h> | #include <primitives/blockhash.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <validation.h> | |||||
#include <map> | #include <map> | ||||
/** | /** | ||||
* The index database stores three items for each block: the disk location of | * The index database stores three items for each block: the disk location of | ||||
* the encoded filter, its dSHA256 hash, and the header. Those belonging to | * the encoded filter, its dSHA256 hash, and the header. Those belonging to | ||||
* blocks on the active chain are indexed by height, and those belonging to | * blocks on the active chain are indexed by height, and those belonging to | ||||
* blocks that have been reorganized out of the active chain are indexed by | * blocks that have been reorganized out of the active chain are indexed by | ||||
▲ Show 20 Lines • Show All 494 Lines • Show Last 20 Lines |