File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 22
22
#include < httpserver.h>
23
23
#include < index/blockfilterindex.h>
24
24
#include < index/txindex.h>
25
+ #include < index/utxosethash.h>
25
26
#include < interfaces/chain.h>
26
27
#include < key.h>
27
28
#include < miner.h>
@@ -1443,6 +1444,7 @@ bool AppInitMain(InitInterfaces& interfaces)
1443
1444
filter_index_cache = max_cache / n_indexes;
1444
1445
nTotalCache -= filter_index_cache * n_indexes;
1445
1446
}
1447
+ int64_t utsh_cache = 0 ;
1446
1448
int64_t nCoinDBCache = std::min (nTotalCache / 2 , (nTotalCache / 4 ) + (1 << 23 )); // use 25%-50% of the remainder for disk cache
1447
1449
nCoinDBCache = std::min (nCoinDBCache, nMaxCoinsDBCache << 20 ); // cap total coins db cache
1448
1450
nTotalCache -= nCoinDBCache;
@@ -1661,6 +1663,9 @@ bool AppInitMain(InitInterfaces& interfaces)
1661
1663
GetBlockFilterIndex (filter_type)->Start ();
1662
1664
}
1663
1665
1666
+ g_utxo_set_hash = MakeUnique<UtxoSetHash>(utsh_cache, false , fReindex );
1667
+ g_utxo_set_hash->Start ();
1668
+
1664
1669
// ********************************************************* Step 9: load wallet
1665
1670
for (const auto & client : interfaces.chain_clients ) {
1666
1671
if (!client->load ()) {
You can’t perform that action at this time.
0 commit comments