Questions tagged [cache]

Uses of caching in Bitcoin related software projects (e.g. Bitcoin Core) and how they can be used to speed up builds

Filter by
Sorted by
Tagged with
3 votes
1 answer
178 views

Is there a cache mechanism with getrawtransaction?

I am currently working on a script that parses every BTC transaction from the beginning of the blockchain. My goal is to record summaries about each transaction in database, after synthesizing it. ...
Lev's user avatar
  • 65
0 votes
0 answers
32 views

Bitcoin Mainnet Initialization Crash

I am trying to initialize a fully functional working mainnet node. The initial download with bitcoind works fine until the cache reaches around 600MiB. After which it crashes. The entire 600MiB is ...
Sumitava Biswas's user avatar
1 vote
0 answers
49 views

Which transactions get into blockreconstructionextratxn?

Bitcoin Core has a cache for transactions that aren't in the node's mempool but could be in other mempools, and so are cached for improved compact block reconstruction. This cache holds up to 100 ...
Vojtěch Strnad's user avatar
3 votes
1 answer
995 views

What should I do about these messages in Bitcoin-core's debug-log?

Help, with bitcoin core : AFTER the Rescan : 1 - rescan 2 - response output, on the debug file out: 3 - FlushStateToDisk: write coins cache to disk (coins, kB) completed (s) , OK 4 - Imported mempool ...
signbertrand's user avatar
1 vote
1 answer
57 views

What is maxsigcachesize?

-maxsigcachesize= Limit sum of signature cache and script execution cache sizes to What is this? What is a sigcache? What happens if it is set low and Can it have a bad effect?
Ben Muircroft's user avatar
1 vote
1 answer
85 views

What is the data structure of the signature cache in Bitcoin?

There is a signature cache in Bitcoin, which is used to cache the result of signature verification to avoid extra signature verification. What data is stored in the signature cache? Is it stored in ...
GoneV's user avatar
  • 175
2 votes
1 answer
201 views

What do these memory configurations in debug.log of BitCoin Core represent?

In the debug.log file of BitCoin Core, the cache configuration is described as follows. Cache configuration: Using 2.0 MiB for block index database Using 8.0 MiB for chain state database Using ...
GoneV's user avatar
  • 175
1 vote
0 answers
44 views

What is the relationship between LevelDB's cache (default 8MB) and Bitcoin's UTXO cache?

Please correct me if I am wrong. Bitcoin uses levelDB to store UTXO set. LevelDB has a default 8MB block cache, and the Bitcoin also has a dbcache(default 450MB). What is the relationship between the ...
GoneV's user avatar
  • 175
3 votes
0 answers
141 views

Various caches are defined in the Bitcoin source code. What do these caches refer to?

The source code is as follows: //! -dbcache default (MiB) static const int64_t nDefaultDbCache = 450; //! -dbbatchsize default (bytes) static const int64_t nDefaultDbBatchSize = 16 << 20; //...
GoneV's user avatar
  • 175
4 votes
1 answer
1k views

What are the maximum useful memory limits for a Bitcoind full node?

In contrast to this question about running Bitcoind in a low-memory environment, I have an opposite use-case. I want to run a bitcoind full node (no wallet) on a Linux server with lots of memory but ...
intelfx's user avatar
  • 141
6 votes
1 answer
346 views

When the UTXO in the cache is full, what strategy is used to replace one UTXO with another in the cache?

The UTXO set is stored on the disk, but some UTXOs are also stored in the cache. When validating a transaction, you need to query the UTXO pointed to by the input of the transaction. First, you go to ...
GoneV's user avatar
  • 175
2 votes
1 answer
48 views

Are there any other ways of speeding up the building of Bitcoin Core PRs other than ccache?

I am already using ccache to speed up recompilation when building Bitcoin Core PRs. Are there any other ways of speeding up the process?
Michael Folkson's user avatar
3 votes
1 answer
696 views

What is in the Bitcoin Core LevelDB dbcache? Is it full records or metadata?

What is in the Bitcoin Core LevelDB dbcache? Is it full records or metadata? This question was asked on IRC by Anonymous.
Michael Folkson's user avatar
1 vote
2 answers
291 views

What is ccache? When should I use it when building and reviewing Bitcoin Core PRs?

What is ccache? Can you provide some guidance on when to use it for building Bitcoin Core PRs and how to use it?
Michael Folkson's user avatar
2 votes
1 answer
4k views

Bitcoind Node crashes after using -dbcache option

I've been trying to speed up my node sync by increasing the dbcache. However my node tends to crash overnight. My system is running ubuntu 18.04, 4GM of ram bitcoin core v0.18. I've tried bitcoind -...
nakamoto_connection's user avatar
4 votes
1 answer
1k views

What is the optimal Bitcoin Core 0.17 settings in bitcoin.conf settings for running a full node with a very beefy system?

Is there an optimal bitcoin.conf setting file I should use when running a bitcoin core full node? I have a very beefy system with 16 core processor, 32gb ram, and nvme hard drive. I wan't to be able ...
Patoshi パトシ's user avatar
16 votes
2 answers
9k views

How to run bitcoind in a low memory environment

I have a Raspberry Pi with 925 MB of memory. Bitcoin Core, operating as a full node, uses between 600-900 MB. How can I reduce bitcoind's memory usage? I tried setting maxmempool to its minimum ...
Geremia's user avatar
  • 4,556
7 votes
3 answers
6k views

Cache the Bitcoin Datadir to Improve Performance? Increase Bitcoin DB Cache Size?

Bitcoin is very disk-intensive and that slows it down. It seems to flush data to disk often thus preventing proper caching. With the datadir on a RAMdisk it is much faster. Is it possible to increase ...
kermit's user avatar
  • 2,019
8 votes
1 answer
220 views

Is there a limit on the number of orphan transactions a node can cache?

I´m asking this because a possible attack would be to send an flooding number of orphan transactions, which will never be redeemed. Then clients would have to cache them, increasing storage ...
SDL's user avatar
  • 589