Bitcoin Forum
June 25, 2024, 03:31:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Why do you have to download the whole history since genesis?  (Read 1623 times)
muyuu
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1000



View Profile
August 19, 2012, 10:36:04 PM
 #21

Just out of curiosity, if you haven't logged on your BTC client 3 months in and received a payment a week after you stopped using the client.
Wouldn't it be possible that if we didnt download the full blockchain the client's wallet wouldnt be updated properly?

Sure. The wallet will be updated when it reaches that part of the blockchain. However that doesn't change that your balance is there, even if your wallet doesn't reflect it. You just need to give it time. You would still be able to check your balance with blockexplorer.com , for instance.

I think I mistook your post. I thought you meant that if the client were to download the latest N blocks, and lets say where N == 200. That the wallet.dat would update even if the transaction was 1000 blocks back. I know that the wallet balance should be a certain amount -- if you look at block explorer -- but if the client were never to download that part of the blockchain how would they be able to spend it?


Such a client would validate transactions but wouldn't know your balance from your blockchain alone, it would need to check elsewhere like Electrum does. You can use blockexplorer.com to check your balance. Or blockchain.info .

To know your balance for sure, the client would need at least the tail of the blockchain since your address first received a transaction. Then, if you only care about a number of addresses, there are tricks to compress the blockchain further but it gets complicated and you cannot manage more addresses afterwards. But normally, a new user starting just now and only managing new addresses won't need all the blockchain for genesis for any normal operation including checking balance (we are assuming his addresses are new and have no balance when he first installs the client). Maybe such cases should be covered as an option during install.

GPG ID: 7294199D - OTC ID: muyuu (470F97EB7294199D)
forum tea fund BTC 1Epv7KHbNjYzqYVhTCgXWYhGSkv7BuKGEU DOGE DF1eTJ2vsxjHpmmbKu9jpqsrg5uyQLWksM CAP F1MzvmmHwP2UhFq82NQT7qDU9NQ8oQbtkQ
kaii
Newbie
*
Offline Offline

Activity: 14
Merit: 0



View Profile
August 19, 2012, 10:45:45 PM
 #22

Ohh alright that makes a lot of sense now. I would assume the server downloads the blockchain and notifies the client of the transaction etc?

Yes, in clients like Electrum, the server has the entire blockchain and uses it to keep the client updated.
terabit (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile
August 20, 2012, 12:10:40 AM
 #23

On the bright side, you have locally in your computer all balances and all transactions in bitcoin ever. That's cool if you know how to use it.

How do I? Cheesy
muyuu
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1000



View Profile
August 20, 2012, 05:51:29 AM
 #24

On the bright side, you have locally in your computer all balances and all transactions in bitcoin ever. That's cool if you know how to use it.

How do I? Cheesy

You can play with this source code https://bitcointalk.org/index.php?topic=88584.0;topicseen

GPG ID: 7294199D - OTC ID: muyuu (470F97EB7294199D)
forum tea fund BTC 1Epv7KHbNjYzqYVhTCgXWYhGSkv7BuKGEU DOGE DF1eTJ2vsxjHpmmbKu9jpqsrg5uyQLWksM CAP F1MzvmmHwP2UhFq82NQT7qDU9NQ8oQbtkQ
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!