mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 06:32:33 +01:00
Merge #13243: Make reusable base class for auxiliary indices
ec3073a274index: Move index DBs into index/ directory. (Jim Posen)89eddcd365index: Remove TxIndexDB from public interface of TxIndex. (Jim Posen)2318affd27MOVEONLY: Move BaseIndex to its own file. (Jim Posen)f376a49241index: Generalize logged statements in BaseIndex. (Jim Posen)61a1226d87index: Extract logic from TxIndex into reusable base class. (Jim Posen)e5af5fc6fbdb: Make reusable base class for index databases. (Jim Posen)9b0ec1a7f9db: Remove obsolete methods from CBlockTreeDB. (Jim Posen) Pull request description: This refactors most of the logic in TxIndex into a reusable base class for other indices. There are two commits moving code between files, which may be be more easily reviewed using `git diff --color-moved` (https://blog.github.com/2018-04-05-git-217-released/). The motivation for this is to support BIP 157 by indexing block filters. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/bitcoin/bitcoin/13243) <!-- Reviewable:end --> Tree-SHA512: 0857f04df2aa920178dab2eb8e57984d8eb4d5010deca9971190358479e05b6672ccca2a08af0a7ac9fe02afb947be84cf35a3693204d0667263c6add2959cbf
This commit is contained in:
@@ -15,7 +15,7 @@ BOOST_AUTO_TEST_SUITE(txindex_tests)
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE(txindex_initial_sync, TestChain100Setup)
|
||||
{
|
||||
TxIndex txindex(MakeUnique<TxIndexDB>(1 << 20, true));
|
||||
TxIndex txindex(1 << 20, true);
|
||||
|
||||
CTransactionRef tx_disk;
|
||||
uint256 block_hash;
|
||||
|
||||
Reference in New Issue
Block a user