Bitcoin Forum
June 24, 2024, 02:12:15 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: downloading blocks is too slow  (Read 1933 times)
JimmyGre (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 16, 2014, 02:38:48 AM
 #1

I followed this -- http://linux.ringingliberty.com/bitcoin/ tutorial to install my daemon. But I can not get the bitcoin balance.
I checked here -- https://bitcointalk.org/index.php?topic=595916.0 . It says there are 299134 blocks and would take a day to download. It takes me 2 weeks to download but still less than 290000.
The number of blocks is increasing but really really slow.

Any reasons?

Thank you,
Jim
Shogen
Legendary
*
Offline Offline

Activity: 966
Merit: 1001



View Profile
May 16, 2014, 03:46:41 AM
 #2

It says there are 299134 blocks and would take a day to download. It takes me 2 weeks to download but still less than 290000.
The number of blocks is increasing but really really slow.

The initial sync shouldn't take such a long period of time. Do you have a very limited internet bandwidth?

JimmyGre (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 16, 2014, 03:55:53 AM
 #3

It says there are 299134 blocks and would take a day to download. It takes me 2 weeks to download but still less than 290000.
The number of blocks is increasing but really really slow.

The initial sync shouldn't take such a long period of time. Do you have a very limited internet bandwidth?

I don't think I have very limited...
it's like adding one block every min....
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
May 16, 2014, 03:57:49 AM
 #4

Is your cpu maxed? It has to process the blocks too.  Low disk space?  Some kind of firewall problem? How many connections do you have?

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
21st-century
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
May 16, 2014, 03:58:03 AM
 #5

You might have poor node connectivity. How many connections do you have? Check that you've setup port forwarding correctly in your router so other nodes can "find" yours easier. Failing that, you can change the source code's outgoing connection # and incoming connection # to be 100 instead of ~8. Improves connectivity and block downloads if you're running a server. Just be careful it doesn't rape your bandwidth.

In future you might want to use a bootstrap.dat. It's a pre-downloaded list of blocks that can vastly speed up how fast you can get a client "up to date." There are some good torrents for this.
Shogen
Legendary
*
Offline Offline

Activity: 966
Merit: 1001



View Profile
May 16, 2014, 04:19:27 AM
 #6

In future you might want to use a bootstrap.dat. It's a pre-downloaded list of blocks that can vastly speed up how fast you can get a client "up to date." There are some good torrents for this.

The link to the bootstrap torrent can be found directly on bitcoin.org download page. https://bitcoin.org/en/download

Quote
If you know how to download a torrent file, you can speed up this process by putting bootstrap.dat (a previous copy of the block chain) in the Bitcoin Core data directory before starting the software.

JimmyGre (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 16, 2014, 05:59:55 AM
 #7

In future you might want to use a bootstrap.dat. It's a pre-downloaded list of blocks that can vastly speed up how fast you can get a client "up to date." There are some good torrents for this.

The link to the bootstrap torrent can be found directly on bitcoin.org download page. https://bitcoin.org/en/download

Quote
If you know how to download a torrent file, you can speed up this process by putting bootstrap.dat (a previous copy of the block chain) in the Bitcoin Core data directory before starting the software.


Sorry, really new for bitcoin. How can I do that on CentOS server?
Many many thanks~
J
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 17, 2014, 01:22:14 AM
 #8

You might have poor node connectivity. How many connections do you have? Check that you've setup port forwarding correctly in your router so other nodes can "find" yours easier. Failing that, you can change the source code's outgoing connection # and incoming connection # to be 100 instead of ~8. Improves connectivity and block downloads if you're running a server. Just be careful it doesn't rape your bandwidth.
this is bullshit. bitcoin core only downloads from one peer at a time. having more peers does not improve download speed.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
May 18, 2014, 02:41:18 AM
 #9

You'll have to install a torrent client, like transmission.

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
cahirlet
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 18, 2014, 05:36:20 AM
 #10

Mine took a few days. If you want it to be faster, download the bootstrap from the official site.
Go to https://bitcoin.org/en/download this and scroll to the bottom.
The QT will verify the blocks when starting up. If you do not want to download the blocks, try a light weight client like multibit  Smiley
JimmyGre (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 18, 2014, 10:19:25 PM
 #11

Mine took a few days. If you want it to be faster, download the bootstrap from the official site.
Go to https://bitcoin.org/en/download this and scroll to the bottom.
The QT will verify the blocks when starting up. If you do not want to download the blocks, try a light weight client like multibit  Smiley

Thank you Cahirlet. I'm not sure where I should put the bootstrap.dat.torrent file. under /root/bitcoin I have .git; contrib; doc; qa; share; src folders. Which one should contain bootstrap? And to start this bootstrap, can i just run '$bitcoin = new jsonRPCClient('http://admin:password@127.0.0.1:8332/');' ?

Many many thanks,
J
cahirlet
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 19, 2014, 09:17:49 AM
 #12

Mine took a few days. If you want it to be faster, download the bootstrap from the official site.
Go to https://bitcoin.org/en/download this and scroll to the bottom.
The QT will verify the blocks when starting up. If you do not want to download the blocks, try a light weight client like multibit  Smiley

Thank you Cahirlet. I'm not sure where I should put the bootstrap.dat.torrent file. under /root/bitcoin I have .git; contrib; doc; qa; share; src folders. Which one should contain bootstrap? And to start this bootstrap, can i just run '$bitcoin = new jsonRPCClient('http://admin:password@127.0.0.1:8332/');' ?

Many many thanks,
J
Note: You need to use torrent client in order to get the blockchain file. Try using a torrent client. As to how to import it, navigate to ~/.bitcoin/ and paste your bootstrap.dat or any other name that u have finished torrenting. Personally I like this: http://www.utorrent.com/downloads/linux
Wish you good luck!
JimmyGre (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 19, 2014, 10:41:58 PM
 #13

Mine took a few days. If you want it to be faster, download the bootstrap from the official site.
Go to https://bitcoin.org/en/download this and scroll to the bottom.
The QT will verify the blocks when starting up. If you do not want to download the blocks, try a light weight client like multibit  Smiley

Thank you Cahirlet. I'm not sure where I should put the bootstrap.dat.torrent file. under /root/bitcoin I have .git; contrib; doc; qa; share; src folders. Which one should contain bootstrap? And to start this bootstrap, can i just run '$bitcoin = new jsonRPCClient('http://admin:password@127.0.0.1:8332/');' ?

Many many thanks,
J
Note: You need to use torrent client in order to get the blockchain file. Try using a torrent client. As to how to import it, navigate to ~/.bitcoin/ and paste your bootstrap.dat or any other name that u have finished torrenting. Personally I like this: http://www.utorrent.com/downloads/linux
Wish you good luck!
Cool~ Thank you!!!
Cryddit
Legendary
*
Offline Offline

Activity: 924
Merit: 1129


View Profile
May 20, 2014, 09:53:54 PM
 #14

Actually a high latency, or a slow computer, can cause very slow downloads in the bitcoin blockchain, even if you have good bandwidth.

The way the initial block download works, your client goes and asks somebody, "what's the current block", and they say, BLOCK ID XXXXX.  And then since you don't have XXXXX, you ask them for that and they send it to you, but after you download it, then you look at its block header and discover that the previous block was WWWWW - and you don' t have that one either!  So you ask, "Hey could you give me  a copy of Block WWWWW?"  And they send that, and you look at it, and its parent was VVVVVV, and you don' t have that either, so you ask.....  and so on, back to the Genesis block.

The deal here is that you don't know which additional block you need next (and therefore can't ask for it) until you've gotten the current block, so you can only have one request for a block out there at a time.  If you have a high latency, or the peer you asked the block for has a high latency, it can take a few seconds to get each and every block, even if you both support very high transfer rates.

Then there's a CPU bottleneck to worry about.  Your peer does all kinds of cryptographic checks on each downloaded block, so if your CPU is slow, that may even dominate the latency time. 

It's worthwhile to get the bitcoin blockchain using bittorrent; with the bittorrent protocol at least you can have requests out there and active for more than one block at a time. 




softtissue
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
May 21, 2014, 01:48:05 AM
 #15

Trying to use SSD, it will improve the download speed obviously. Smiley
cahirlet
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
May 21, 2014, 09:04:14 AM
 #16

Trying to use SSD, it will improve the download speed obviously. Smiley
Verification and write speed, after downloading, your computer need to verify the blocks individually. SSD greatly improves the speed. Download speed is dependent on your internet speed, not on hardware.  Smiley
swapcoiner
Member
**
Offline Offline

Activity: 93
Merit: 10


View Profile
May 21, 2014, 03:17:45 PM
 #17

Check your network bandwidth. Block downloads depends on network speed.
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
May 21, 2014, 11:31:39 PM
 #18

Use

bitcoin-qt (or bitcoind) --maxconnections=1 --connect=5.9.24.81

until you finish syncing the entire blockchain.

This will help w/ two things, 1) you won't use any upstream (& potentially have downstream limited by saturated upstream) by having or connecting to a client that's also downloading the blockchain, 2) you'll receive blocks as fast as your CPU can process them (I have gigabit connection on 5.9.24.81).
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
May 22, 2014, 06:40:10 AM
 #19

Trying to use SSD, it will improve the download speed obviously. Smiley
Verification and write speed, after downloading, your computer need to verify the blocks individually. SSD greatly improves the speed. Download speed is dependent on your internet speed, not on hardware.  Smiley

Network speed is rarely the bottleneck unless you just have the bad luck of continually connecting to a really slow peer.   Downloading 20 GB @ 5Mbps is only ~8 hours.

Downloading and verification aren't independent steps.  To avoid being spoofed by other nodes your client will download a block, verify it, and then request the next block.  The blockchain is downloaded, verified, and indexed one block at a time.
Frz
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
May 22, 2014, 09:41:08 AM
 #20

Are there plans to do block verification (of multiple blocks) in parralel?
Especially during bootstrap.dat loading this would be very useful (because we all have multi core machines) - possibly even utilising the gpu to speed up the process some more.
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!