Bitcoin Forum
March 28, 2024, 09:27:20 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why a new node need to synchronize from the begining of the blockchain ?  (Read 129 times)
cryptonisan (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 26, 2023, 11:19:03 PM
 #1

Hi,

I'm kinda new to this crytpo stuff and I wanted to start a bitcoin core node to understand more.

I understand that it needs to synchronize data (taking days to do so) but why ?

Knowing that there's a prune option making so not all data are stored on my computer, why couldn't a new node start with info validated from the last blocks ?

Unless I get it wrong, its purpose is to validate future blocks based on a previous/last one right ?
1711661240
Hero Member
*
Offline Offline

Posts: 1711661240

View Profile Personal Message (Offline)

Ignore
1711661240
Reply with quote  #2

1711661240
Report to moderator
1711661240
Hero Member
*
Offline Offline

Posts: 1711661240

View Profile Personal Message (Offline)

Ignore
1711661240
Reply with quote  #2

1711661240
Report to moderator
1711661240
Hero Member
*
Offline Offline

Posts: 1711661240

View Profile Personal Message (Offline)

Ignore
1711661240
Reply with quote  #2

1711661240
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711661240
Hero Member
*
Offline Offline

Posts: 1711661240

View Profile Personal Message (Offline)

Ignore
1711661240
Reply with quote  #2

1711661240
Report to moderator
franky1
Legendary
*
Online Online

Activity: 4172
Merit: 4357



View Profile
February 26, 2023, 11:52:24 PM
Merited by LeGaulois (3)
 #2

when the first blocks are made those blocks do not know when they will be spent in the future(yea time travel only goes one way)

this means you need to take in the data and then treat the old transactions are spent and list them remaining ones as unspent whilst it goes through the process. to ensure you can have a viable list of what is unspent value

this list of unspents(utxoset) then saves time later by not having to recheck the whole blockchain data on your system every time and just checks the utxoset once said utxoset it built. then it can easily just check against what has not been spent super quick

also those first blocks (that are later spent) do not know which ones will eventually be funding the value on your keys (again time travel one direction)

and so to validate that you received good coin that was not double spent it needs to go through the whole data to figure out the path from the coin origins your funded keypair

because of the utxoset being used when its uptodate, the software doesnt really need to check the blockchain data each time so some people think they can just delete old blocks

for personal use where you do not care about being part of the network infrastructure of decentralising the blockchain and you just care about personal use wallet function. you can prune it as you have decided you dont want to be part of the peer-2-peer process of sharing the blockchain data.
but atleast accept your choice of not wanting to offer the blockchain data to others and just wanting to use the software for personal use once you have synced and built up your utxo set

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
cryptonisan (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 26, 2023, 11:56:16 PM
 #3

oooooh it's all about the utxo!
thank you very much, your answer helps me a lot to understand  Wink
BitMaxz
Legendary
*
Online Online

Activity: 3206
Merit: 2907


Block halving is coming.


View Profile WWW
February 27, 2023, 12:30:13 AM
Merited by LeGaulois (3)
 #4

If you talking about why it needs to be synced to download the first blocks it's because the full node needs the entire history of the blockchain where all transactions are recorded. The Bitcoin full node needs the first and the most recent blocks because it's part of the transaction history on the network so if your Bitcoin core didn't sync you won't be able to verify the transaction authenticity and you won't be able to receive and send Bitcoin or check your transaction history. If ever you are the first one who made a transaction included from the first block then without syncing the Bitcoin core you won't be able to see them and Bitcoin core has limited features if it's not fully synced.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
odolvlobo
Legendary
*
Offline Offline

Activity: 4270
Merit: 3159



View Profile
February 27, 2023, 09:44:57 AM
Merited by LeGaulois (3)
 #5

I understand that it needs to synchronize data (taking days to do so) but why ?

Each block contains the block hash of the previous block. So, in short, if you want to ensure that a block that you have received is actually part of the block chain, you must validate all of its preceding blocks to make sure that the original block's hash (which is stored in the software) is in the chain that you have downloaded.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
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!