Author

Topic: Are UTXOs stored in a file? (Read 144 times)

jr. member
Activity: 33
Merit: 22
December 11, 2022, 12:54:49 PM
#7
Okey, thank you  a lot!
staff
Activity: 3458
Merit: 6793
Just writing some code
December 11, 2022, 12:42:17 PM
#6
If you are using Bitcoin Core's wallet, your own UTXOs are stored in your own wallet file, next to your keys.
jr. member
Activity: 33
Merit: 22
December 11, 2022, 11:57:03 AM
#5
I know about chainstate and leveldb in it. There are all UTXOs of all members of Bitcoin network. But if I would like to get my own UTXOs, the request goes to the same leveldb for checking all of the UTXOs in there to get my own or are my own UTXOs somewhere else in a file maybe or second leveldb or smth like this?
full member
Activity: 206
Merit: 447
December 11, 2022, 11:38:49 AM
#4
UTXO are stored in chainstate subdirectory, which is a LevelDB database, currently ~4.8GB.

One could control how much of it is cached by the command line parameter "-dbcache". It might be useful to make it high enough during IBD (initial block download). Note that high dbcache leads to slow shutdown of Bitcoin Core. Other than during IBD, AFAIK, high dbcache is useless.

There are no private keys in UTXO. Or if there ever were, it's all gone.

jr. member
Activity: 33
Merit: 22
December 11, 2022, 11:19:12 AM
#3
I know that, but the question is "Are utxos stored in hard disk and after any transaction Bitcoin Core reads information from the file? Or after every single launch of Bitcoin Core it collects all UTXOs for the private key and stores in in RAM?"
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
December 11, 2022, 11:01:14 AM
#2
UTXOs are bitcoin which can be spent and transferred to another address using the corresponding private key that generates the address. Bitcoin is stored on blockchain.
jr. member
Activity: 33
Merit: 22
December 11, 2022, 10:39:14 AM
#1
Are UTXOs stored in memory or RAM? Or how they are stored? And if so, what kind of a file it is?
Jump to: