Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
lbrycrd
Commits
7afc4c41
Commit
7afc4c41
authored
Apr 15, 2021
by
Brannon King
Browse files
scale the cache change down a bit
parent
db7e0b59
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/txdb.h
View file @
7afc4c41
...
...
@@ -26,7 +26,7 @@ struct CDiskTxPos;
//! No need to periodic flush if at least this much space still available.
static
constexpr
int
MAX_BLOCK_COINSDB_USAGE
=
10
;
//! -dbcache default (MiB)
static
const
int64_t
nDefaultDbCache
=
6
4
0
;
static
const
int64_t
nDefaultDbCache
=
5
60
;
//! -dbbatchsize default (bytes)
static
const
int64_t
nDefaultDbBatchSize
=
16
<<
20
;
//! max. -dbcache (MiB)
...
...
@@ -40,7 +40,7 @@ static const int64_t nMaxBlockDBCache = 16;
// a meaningful difference: https://github.com/bitcoin/bitcoin/pull/8273#issuecomment-229601991
static
const
int64_t
nMaxTxIndexCache
=
1024
;
//! Max memory allocated to coin DB specific cache (MiB)
static
const
int64_t
nMaxCoinsDBCache
=
128
;
static
const
int64_t
nMaxCoinsDBCache
=
32
;
/** CCoinsView backed by the coin database (chainstate/) */
class
CCoinsViewDB
final
:
public
CCoinsView
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment