2
2
We know that the bitcoin distributed ledgers is stored in a serialized blockchain based on the transactions' chronicle order.
The current size of this database is about 100 GB. How can they search easily within this database? For example, if I got a paper-wallet previously loaded with some bits from Xapo, and I try to sweep its bitcoin value into a copay wallet (different from Xapo), it takes about 75 second to search & get its balance!
So, how can they search in this large serialized database within this short-time? I am asking about the technology behind that!
Thank you for your answer. Who maintains the UTXO database? Is it distributed like the actual blockchain database and maintained by the same infrastructure that maintains the blockchain database (miners' nodes, etc.)? Is there any reference about the UTXO datastructure? Is it indexed? – mksoi – 2017-05-08T09:58:25.123
1
Yes everyone running a node, even pruned nodes will have the UTXO database. Yes, there's reference on UTXO datastructure. Pieter W answers this very well here https://bitcoin.stackexchange.com/questions/28168/what-are-the-keys-used-in-the-blockchain-leveldb-ie-what-are-the-keyvalue-pair
– m1xolyd1an – 2017-05-10T00:11:39.153