Post
Topic
Board Announcements (Altcoins)
Re: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin"
by
Faust Roland
on 06/04/2019, 10:33:33 UTC
If someone could tell me how to sync the wallet that would be great.

Download a bootstrap.
https://bitcointalk.org/index.php?topic=623147.msg9772191#msg9772191

Also for syncing I noticed, that having multiple connection to other nodes creates "ERROR: ProcessBlock() : already have block  XYZ" and trigger lookups for Orphan blocks which slows down the synchronisation.
I usually reduce the maximum connections while synchronizing to have only one source and not get ERRORs and ORPAHNS.
Set
maxconnections=1
in clam.conf and restart the client

Note: There is slight chance you get connected to some malicious node and you download forked chain, but I never encountered that. Plus after you finish syncing you can check the hash of the last block with some public clam block explorer.

Note 2: The sync takes some time to finish, depends on the CPU of you machine (it basically verifies whole chain on the fly) - it can take few days (when I tried to sync using Raspberry Pi in January, it took a week to fully sync)

I have downloaded the bootstrap and copied it.
But my wallet stops importing at block 1,775,795 ( 1 year and 12 week (s) behind ). The " importing blocks " has also disappear from my wallet , What should I do ?

Have you tried to restart the client?
Do you have enough space on your disk?
Do you see any ERRORs in the debug.log?

I think I have enough space.
this is on debug file
Quote
lock() : already have block 1779772 d574f7ad65c275d38c69c553113812774cbd7bdc2301124c21b9c5ce334c5a48
ERROR: ProcessBlock() : already have block 1779773 e395b5e2d2ff012c245ff1b090907e4502bf2319b02605f14233dc2f4eaad9ee
ERROR: ProcessBlock() : already have block 1779774 8320e7eedc1580b55a8936cd777cf5d3abc09a518db2e5c545c711b9c80a5301
ERROR: ProcessBlock() : already have block 1779775 61e4f80a05f85617a3b6a7daf5ed0f677402c4cde948f3fa37d04aa042bc5ae0
ERROR: ProcessBlock() : already have block 1779776 c8db7d7391b8028a168dc8c33b9bba24eaf9262e8fde349dac35d9b0b57383d9

And I just noticed that name of "bootstrap.dat " file changed to "bootstrap.dat.old"

Hi,
 "bootstrap.dat.old" means, that the bootstrap was fully processed.
"already have block" means that the Clam tries import block from bootstrap, but its already in the DB (maybe from the previous run).

Its a bit strange, as the bootstrap from the link should have 2467400 blocks.

Anyway - after finishing bootstrap it should start syncing from the network.
Do you have at least one connection?