Bitcoin Core
29.99.0
P2P Digital Currency
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Typedefs
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
v
w
Enumerations
a
b
c
d
e
f
i
l
m
p
r
s
t
u
w
Enumerator
a
b
c
d
e
f
h
i
l
m
n
p
q
r
s
t
u
v
w
z
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
m
o
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Properties
Related Functions
a
b
c
d
e
f
i
l
m
o
p
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Typedefs
b
c
d
e
f
h
l
m
n
p
r
s
t
u
v
w
Enumerations
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
v
Enumerator
a
b
c
d
e
g
h
i
j
l
m
n
o
r
s
t
u
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Concepts
src
node
caches.h
Go to the documentation of this file.
1
// Copyright (c) 2021 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_NODE_CACHES_H
6
#define BITCOIN_NODE_CACHES_H
7
8
#include <
kernel/caches.h
>
9
#include <
util/byte_units.h
>
10
11
#include <cstddef>
12
13
class
ArgsManager
;
14
16
static
constexpr
size_t
MIN_DB_CACHE
{4_MiB};
18
static
constexpr
size_t
DEFAULT_DB_CACHE
{
DEFAULT_KERNEL_CACHE
};
19
20
namespace
node
{
21
struct
IndexCacheSizes
{
22
size_t
tx_index
{0};
23
size_t
filter_index
{0};
24
};
25
struct
CacheSizes
{
26
IndexCacheSizes
index
;
27
kernel::CacheSizes
kernel
;
28
};
29
CacheSizes
CalculateCacheSizes
(
const
ArgsManager
&
args
,
size_t
n_indexes = 0);
30
}
// namespace node
31
32
#endif
// BITCOIN_NODE_CACHES_H
args
ArgsManager & args
Definition:
bitcoind.cpp:277
byte_units.h
ArgsManager
Definition:
args.h:99
caches.h
DEFAULT_KERNEL_CACHE
static constexpr size_t DEFAULT_KERNEL_CACHE
Suggested default amount of cache reserved for the kernel (bytes)
Definition:
caches.h:13
node
Definition:
messages.h:20
node::CalculateCacheSizes
CacheSizes CalculateCacheSizes(const ArgsManager &args, size_t n_indexes)
Definition:
caches.cpp:24
MIN_DB_CACHE
static constexpr size_t MIN_DB_CACHE
min. -dbcache (bytes)
Definition:
caches.h:16
DEFAULT_DB_CACHE
static constexpr size_t DEFAULT_DB_CACHE
-dbcache default (bytes)
Definition:
caches.h:18
kernel::CacheSizes
Definition:
caches.h:20
node::CacheSizes
Definition:
caches.h:25
node::CacheSizes::index
IndexCacheSizes index
Definition:
caches.h:26
node::CacheSizes::kernel
kernel::CacheSizes kernel
Definition:
caches.h:27
node::IndexCacheSizes
Definition:
caches.h:21
node::IndexCacheSizes::tx_index
size_t tx_index
Definition:
caches.h:22
node::IndexCacheSizes::filter_index
size_t filter_index
Definition:
caches.h:23
Generated on Sun Apr 20 2025 20:00:10 for Bitcoin Core by
1.9.4