Peergroup download of the blockchain stalls?

16

3

I'm using bitcoinsharp to build my client. I try to download the blockchain in a peergroup network. Download starts, but when progress is 98%, the download is stopped & the client is waiting (2 hours without any change). The size of the downloaded blockchain file is 4.5 MB.

I use the following code:

PeerGroup peerGroup = new PeerGroup(blockStore, @params, chain);
peerGroup.AddAddress(new PeerAddress(IPAddress.Parse("84.38.65.102")));
peerGroup.AddAddress(new PeerAddress(IPAddress.Parse("83.23.15.71")));
peerGroup.Start();
peerGroup.DownloadBlockChain();

Any ideas?

Darkwave34

Posted 2011-12-17T18:45:15.047

Reputation: 221

2can you segment the download? The block chain is really several chunks, divided by transaction groups and it could very well be an issue that the size changed over time. Basically treat the block chain as a download of unknown file size?nybbler905 2013-08-24T02:40:13.470

2Are you using the latest libraries?Sean Chapman 2011-12-18T01:20:57.207

yes , I checkout http://code.google.com/p/bitcoinsharp/source/ ..

Darkwave34 2011-12-18T07:27:06.260

2And i try BoundedOverheadBlockStore, DiskBlockStore , MemoryBlockStore create blockchain but same result.Darkwave34 2011-12-18T07:34:50.350

Hi Stephane, Try your edited version and dont finished download.Darkwave34 2011-12-18T11:44:47.633

1Maybe it's just because there are so many transactions it's taking a while?lurf jurv 2013-01-02T20:03:22.307

Answers

1

The library is abandoned 7 years ago, and I don't see that anybody picked it up for maintenance https://github.com/search?utf8=%E2%9C%93&q=bitcoinsharp&type= Try to base your application on a library that is still maintained.

Anatoli Babenia

Posted 2011-12-17T18:45:15.047

Reputation: 56

5The question was also asked 7 years ago.Pieter Wuille 2018-04-06T15:44:09.193