Bitcoin Forum
May 26, 2024, 01:36:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Is Bitcoin data in this site accurate or fake?  (Read 268 times)
Shymaa-Arafat (OP)
Full Member
***
Offline Offline

Activity: 228
Merit: 156


View Profile
September 26, 2021, 11:42:02 AM
 #21

Today, right now... my Bitcoin Core node does NOT have a merkle tree of UTXOs... it has a LevelDB database that is stored in the "chainstate" folder of the Bitcoin Core data directory: https://bitcoindev.network/understanding-the-data/
OK sorry, sometime ago along those 4-5months I understood that UTXOS Merkleization is on stateless nodes.

However, comes again another confusion; where is the TXs Merkle Tree stored?
Still after reading those get more mixed up?!!!!!

https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch07.html
& tracing the push_back function in C++, it's used in Vector data structure.
I knew before that TXIDs are stored as a vector
Quote
std::vector<CTransactionRef> vtx;
https://github.com/bitcoin/bitcoin/blob/7fcf53f7b4524572d1d0c9a5fdc388e87eb02416/src/primitives/block.h#L66

-Is the vector that store transactions a compact representation of a Merkle Tree with no pointers?ie stores a tree strucutre implicitly?or do full nodes just build the tree once to verify the root in the header then deallocate it's space?

-I know Bloom filters (BIP37) and alike send proofs to SPV clients, to send a proof u must have a tree do Bloom filters also calculate proofs then destroy it?
.
-Finally, the Merkle root field in ur reference

Quote
"height": 1,
"version": 536870912,
"merkleroot": "37c2334d0314e11d396b5465e9bc5ec7cf0155c13a47f1af2731174331b3b78d",
"tx": [
"37c2334d0314e11d396b5465e9bc5ec7cf0155c13a47f1af2731174331b3b78d"
],
what does it mean?the txid (hash) of the creating TX?or the Merkle root of the block created it?
Pages: « 1 [2]  All
  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!