diff options
| author | Jim Posen <[email protected]> | 2017-12-08 11:29:59 -0800 |
|---|---|---|
| committer | Jim Posen <[email protected]> | 2018-04-25 11:25:12 -0700 |
| commit | 8181db88f6e0ed96654951e18b1558cd8f78765b (patch) | |
| tree | 45a4614e5baf4e0df61995519938b06b47e079ae /src/index/txindex.cpp | |
| parent | [index] TxIndex method to wait until caught up. (diff) | |
| download | discoin-8181db88f6e0ed96654951e18b1558cd8f78765b.tar.xz discoin-8181db88f6e0ed96654951e18b1558cd8f78765b.zip | |
[init] Initialize and start TxIndex in init code.
Diffstat (limited to 'src/index/txindex.cpp')
| -rw-r--r-- | src/index/txindex.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index/txindex.cpp b/src/index/txindex.cpp index 484526a6d..7992d8533 100644 --- a/src/index/txindex.cpp +++ b/src/index/txindex.cpp @@ -14,6 +14,8 @@ constexpr int64_t SYNC_LOG_INTERVAL = 30; // seconds constexpr int64_t SYNC_LOCATOR_WRITE_INTERVAL = 30; // seconds +std::unique_ptr<TxIndex> g_txindex; + template<typename... Args> static void FatalError(const char* fmt, const Args&... args) { |