aboutsummaryrefslogtreecommitdiff
path: root/src/index/txindex.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Break circular dependency: init -> * -> init by extracting shutdown.hBen Woosley2018-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Most includers just wanted to react to pending shutdown. This isolates access to `fRequestShutdown` and limits access to the shutdown api functions, including the new `AbortShutdown` for setting it to `false`. Note I originally called `AbortShutdown` `CancelShutdown` but that name was already taken by winuser.h https://travis-ci.org/bitcoin/bitcoin/jobs/386913329 This change also triggered a build error in bench. Fixing it required moving LIBBITCOIN_SERVER after LIBBITCOIN_WALLET in bench_bench_bitcoin_LDADD To make server definitions in src/net.cpp available to wallet methods in src/wallet/wallet.cpp. Specifically, solving: libbitcoin_wallet.a(libbitcoin_wallet_a-wallet.o): In function `CWalletTx::RelayWalletTransaction(CConnman*)': wallet.cpp:(.text+0x3f0e): undefined reference to `CConnman::NodeFullyConnected(CNode const*)' collect2: error: ld returned 1 exit status https://travis-ci.org/bitcoin/bitcoin/jobs/392133581 Need for remaining init.h includes confirmed via a thorough search with a more specific regex: \bInterrupt\(\)|\bShutdown\(\)|\bInitLogging\(\)|\bInitParameterInteraction\(\)|\bAppInitBasicSetup\(\)|\bAppInitParameterInteraction\(\)|\bAppInitSanityChecks\(\)|\bAppInitLockDataDirectory\(\)|\bAppInitMain\(\)|\bSetupServerArgs\(\)|\bLicenseInfo\(\)|g_wallet_init_interface|init.h
* index: Move index DBs into index/ directory.Jim Posen2018-06-041-1/+218
|
* index: Remove TxIndexDB from public interface of TxIndex.Jim Posen2018-06-041-1/+3
|
* MOVEONLY: Move BaseIndex to its own file.Jim Posen2018-06-041-251/+0
|
* index: Generalize logged statements in BaseIndex.Jim Posen2018-06-041-10/+11
|
* index: Extract logic from TxIndex into reusable base class.Jim Posen2018-06-041-17/+23
|
* Fix typospracticalswift2018-05-071-2/+2
|
* Merge #13149: Handle unsuccessful fseek(...):sWladimir J. van der Laan2018-05-071-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | 20ce5af Print a log message if we fail to shrink the debug log file (practicalswift) 29c9bdc Handle unsuccessful fseek(...):s (practicalswift) Pull request description: Handle unsuccessful `fseek(...)`:s. **Note to reviewers:** What is the most appropriate course of actions for each of these unsuccessful `fseek(...)`:s? Tree-SHA512: 5b3d82dbdd15d434d3f08dcb4df62888da4df8541d2586f56a4e529083005f6782c39e10645acd1ec403da83061bbfd8dbf2dddc66e09268d410ad0918c61876
| * Handle unsuccessful fseek(...):spracticalswift2018-05-021-1/+3
| |
* | scripted-diff: Rename SetBestChain callback ChainStateFlushedMatt Corallo2018-04-271-2/+2
|/ | | | | | | | This much more accurately captures the meaning of the callback. -BEGIN VERIFY SCRIPT- sed -i 's/SetBestChain/ChainStateFlushed/g' src/validationinterface.h src/validationinterface.cpp src/wallet/wallet.h src/wallet/wallet.cpp src/validation.cpp src/index/txindex.h src/index/txindex.cpp -END VERIFY SCRIPT-
* [index] Move disk IO logic from GetTransaction to TxIndex::FindTx.Jim Posen2018-04-251-2/+23
|
* [init] Initialize and start TxIndex in init code.Jim Posen2018-04-251-0/+2
|
* [index] TxIndex method to wait until caught up.Jim Posen2018-04-251-0/+24
| | | | | | In order to preserve getrawtransaction RPC behavior, there needs to be a way for a thread to ensure the transaction index is in sync with the current state of the blockchain.
* [index] Allow TxIndex sync thread to be interrupted.Jim Posen2018-04-251-0/+16
|
* [index] TxIndex initial sync thread.Jim Posen2018-04-251-0/+89
| | | | | TxIndex starts up a background thread to get in sync with the block index before blocks are processed through the ValidationInterface.
* [index] Create new TxIndex class.Jim Posen2018-04-251-0/+157
The TxIndex will be responsible for building the transaction index concurrently with the main validation thread by implementing ValidationInterface. This does not process blocks concurrently yet.