mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-29 04:27:30 -03:00
23 lines
590 B
C
23 lines
590 B
C
|
// Copyright (c) 2021 The Bitcoin Core developers
|
||
|
// Distributed under the MIT software license, see the accompanying
|
||
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
#ifndef BITCOIN_NODE_CACHES_H
|
||
|
#define BITCOIN_NODE_CACHES_H
|
||
|
|
||
|
#include <cstddef> // for size_t
|
||
|
#include <cstdint> // for int64_t
|
||
|
|
||
|
class ArgsManager;
|
||
|
|
||
|
struct CacheSizes {
|
||
|
int64_t block_tree_db;
|
||
|
int64_t coins_db;
|
||
|
int64_t coins;
|
||
|
int64_t tx_index;
|
||
|
int64_t filter_index;
|
||
|
};
|
||
|
CacheSizes CalculateCacheSizes(const ArgsManager& args, size_t n_indexes = 0);
|
||
|
|
||
|
#endif // BITCOIN_NODE_CACHES_H
|