Bitcoin Forum
June 29, 2024, 01:29:33 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)
terabit (OP)
Newbie
*
Offline Offline

Activity: 39
Merit: 0



View Profile
August 18, 2012, 06:12:28 PM
 #1

It takes hours to download the whole history! And as it gets closer to finished it starts taking longer.. why does it have to do the whole thing?
hamdi
Hero Member
*****
Offline Offline

Activity: 826
Merit: 500



View Profile
August 18, 2012, 07:10:22 PM
 #2

to control all balances
imsaguy
General failure and former
VIP
Hero Member
*
Offline Offline

Activity: 574
Merit: 500

Don't send me a pm unless you gpg encrypt it.


View Profile WWW
August 18, 2012, 07:12:37 PM
 #3

It takes hours to download the whole history! And as it gets closer to finished it starts taking longer.. why does it have to do the whole thing?

Every block includes the previous block as a reference so your computer has to verify all the way back that everything is in order.  The reason that the later blocks/history take longer is that there are more transactions now than there were a year ago.

Coming Soon!™ © imsaguy 2011-2013, All rights reserved.

EIEIO:
https://bitcointalk.org/index.php?topic=60117.0

Shades Minoco Collection Thread: https://bitcointalk.org/index.php?topic=65989
Payment Address: http://btc.to/5r6
drakahn
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500



View Profile
August 18, 2012, 07:14:44 PM
 #4

It takes hours to download the whole history! And as it gets closer to finished it starts taking longer.. why does it have to do the whole thing?
There are thin clients and online wallets for now if the blockchain is too heavy.

14ga8dJ6NGpiwQkNTXg7KzwozasfaXNfEU
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
August 18, 2012, 07:55:45 PM
 #5

Because Bitcoin rely on ppl having the client with the full blockchain with all the transactions

Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
August 19, 2012, 12:06:40 AM
 #6

It takes hours to download the whole history! And as it gets closer to finished it starts taking longer.. why does it have to do the whole thing?

To verify that transactions have not been previously spent, Bitcoin uses a chain of data blocks.  This is called the blockchain.



 - http://en.bitcoin.it/wiki/Blockchain

So to verify a transaction, there needs to be a chain with integrity, all the way back to block #0.

The reason it starts to take longer with more recent blocks has to do with Bitcoin's growth as a payment network.  In the past few months, half or more of those transactions are wagers from a single online gambling service,  SatoshiDICE, incidentally

If you are finding this to be too slow, make sure you are using the most recent release of the software (v0.6.3) as that has performance improvements.  Also, if you are running on an encrypted filesystem, that will really bog things down.  At some point in the future, the Bitcoin.org client will be getting a couple of improvements -- LevelDB (instead of BDB) for storage and Ultraprune, which will help make it so less storage will be necessary.

Not all users need to run the full bitcoin.org client.  Some would be just fine running Simplified Payment Verification (SPV) clients.  Electrum is an example of a thin client that uses a server for transactions yet remains secure where the private key(s) are stored locally.  There is no blockchain download required.


Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


Glacio
Newbie
*
Offline Offline

Activity: 19
Merit: 0



View Profile
August 19, 2012, 12:30:28 AM
 #7

Judging by the average weight of a single one of these days datablocks, I'm pretty sure that the "thin" wallets are the future of the Bitcoin economy.
Clearly I'm not saying the classic type wallets will totally disappear...
stoneyjonez
Newbie
*
Offline Offline

Activity: 11
Merit: 0



View Profile WWW
August 19, 2012, 08:47:53 AM
 #8

If you don't want to have to download the blockchain all the time (or at all), check out Electrum. I first tried it about a week ago and haven't used another wallet since!
JompinDox
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile
August 19, 2012, 08:56:32 AM
 #9

If you don't want to have to download the blockchain all the time (or at all), check out Electrum. I first tried it about a week ago and haven't used another wallet since!

Are you using it on Windows or Linux?
I'm trying to get it installed on Slacko 5.3.3 but am having trouble with the dependencies.

Tips? 1ELECeJompinDox61L73eAUyaWpe3Q5HZB
Down with socks!
stoneyjonez
Newbie
*
Offline Offline

Activity: 11
Merit: 0



View Profile WWW
August 19, 2012, 09:18:16 AM
 #10

Are you using it on Windows or Linux?
I'm trying to get it installed on Slacko 5.3.3 but am having trouble with the dependencies.

So far, I've used it on Windows and Mac. The Windows one is far better than its Mac counterpart. If you can't get it working, try to run the Windows version in Wine.
deus-ex-machina
Full Member
***
Offline Offline

Activity: 166
Merit: 100



View Profile
August 19, 2012, 05:52:02 PM
 #11

Downloading it now. Thanks in advance for removing the only bad part of Bitcoin.

No, that wasn't sarcasm.
JompinDox
Member
**
Offline Offline

Activity: 107
Merit: 10


View Profile
August 19, 2012, 07:17:02 PM
 #12

Are you using it on Windows or Linux?
I'm trying to get it installed on Slacko 5.3.3 but am having trouble with the dependencies.

So far, I've used it on Windows and Mac. The Windows one is far better than its Mac counterpart. If you can't get it working, try to run the Windows version in Wine.

Why? I thought they had the same codebase?

Tips? 1ELECeJompinDox61L73eAUyaWpe3Q5HZB
Down with socks!
kaii
Newbie
*
Offline Offline

Activity: 14
Merit: 0



View Profile
August 19, 2012, 09:34:53 PM
Last edit: August 21, 2012, 03:41:33 PM by kaii
 #13

Here is a relevant article on the Bitcoin wiki about clients that don't download the entire blockchain (i.e. thin clients).

https://en.bitcoin.it/wiki/Thin_Client_Security

There are added security risks because there is no way for a thin client to verify a transaction independently of contacting other nodes or servers. This makes thin clients susceptible to a greater variety of attacks, especially on untrusted networks.
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
August 19, 2012, 09:38:18 PM
 #14

Downloading it now. Thanks in advance for removing the only bad part of Bitcoin.

No, that wasn't sarcasm.
Please note that having people running the full client with the full blockchain help making bitcoin safe.

muyuu
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1000



View Profile
August 19, 2012, 09:50:02 PM
 #15

In all fairness not all the blockchain is necessary to operate, just the latest N blocks would suffice (for N no smaller than 10). But that's the way the "official" client works right now.

Needless to say, this will need changing sometime soon. Especially after satoshidice started crapping the blockchain.

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.

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

Activity: 11
Merit: 0


View Profile
August 19, 2012, 10:07:49 PM
 #16

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?
muyuu
Donator
Legendary
*
Offline Offline

Activity: 980
Merit: 1000



View Profile
August 19, 2012, 10:12:41 PM
 #17

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.

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:20:44 PM
 #18

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?

To calculate wallet balances, the client just needs to know of any transactions where one of its addresses is an in/out of a transaction. In a client that downloads the entire blockchain, the balance is updated when the blockchain update reaches a relevant transaction. If the client relies on a server (like Electrum) then it would be easy for the server to send the right data when you open the wallet.
chaosman
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
August 19, 2012, 10:26:09 PM
 #19

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?
chaosman
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
August 19, 2012, 10:31:00 PM
 #20

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?

To calculate wallet balances, the client just needs to know of any transactions where one of its addresses is an in/out of a transaction. In a client that downloads the entire blockchain, the balance is updated when the blockchain update reaches a relevant transaction. If the client relies on a server (like Electrum) then it would be easy for the server to send the right data when you open the wallet.

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?
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!