Bitcoin Forum
May 01, 2024, 06:05:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Are UTXOs stored in a file?  (Read 107 times)
BoyFromDubai (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 22


View Profile
December 11, 2022, 03:39:14 PM
 #1

Are UTXOs stored in memory or RAM? Or how they are stored? And if so, what kind of a file it is?
1714543509
Hero Member
*
Offline Offline

Posts: 1714543509

View Profile Personal Message (Offline)

Ignore
1714543509
Reply with quote  #2

1714543509
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Charles-Tim
Legendary
*
Offline Offline

Activity: 1526
Merit: 4833



View Profile
December 11, 2022, 04:01:14 PM
Last edit: December 11, 2022, 04:11:53 PM by Charles-Tim
 #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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
BoyFromDubai (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 22


View Profile
December 11, 2022, 04:19:12 PM
 #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?"
j2002ba2
Full Member
***
Offline Offline

Activity: 204
Merit: 437


View Profile
December 11, 2022, 04:38:49 PM
Merited by vapourminer (2), odolvlobo (2), ABCbits (2)
 #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.

BoyFromDubai (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 22


View Profile
December 11, 2022, 04:57:03 PM
 #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?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3374
Merit: 6568


Just writing some code


View Profile WWW
December 11, 2022, 05:42:17 PM
Merited by ABCbits (1), Charles-Tim (1)
 #6

If you are using Bitcoin Core's wallet, your own UTXOs are stored in your own wallet file, next to your keys.

BoyFromDubai (OP)
Jr. Member
*
Offline Offline

Activity: 33
Merit: 22


View Profile
December 11, 2022, 05:54:49 PM
 #7

Okey, thank you  a lot!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!