Syncing speed is atrocious
In close to 3 days it only synced 9600 blocks. In the last 16 hours the wallet synced ~100 blocks with plenty of nodes (and plenty of "PROCESS REVERSE/ERROR: CTransaction::CheckTransaction() : Error: Node does not have mint zerocoin to verify, please wait until" errors).
But, even without any errors in debug.log and after several restarts it's still painfully slow, sometimes slower than how fast new blocks being found.
If block verification really does requires this much CPU time, at least make it threaded because on 1 core it takes forever.
Win7x64, i7-6800K, SSD, 100Mbps DL.
I just do a quick -reindex test with below config.
server=1
defaultkey=1
logtimestamps=1
dns=1
listen=1
daemon=1
rpcallowip=*
txindex=1
Started at 5:21 pm and now at 2.55am I'm at block 19955. Tested on an Ubuntu 16.04 VM with 1GB RAM, 2 cores.
2017-02-15 01:56:58 SetBestChain: new best=384f6d137ac5dc7bcfaffd987714092a101d0ab88bfd24347289af3453b2b5eb height=19955 log2_work=43.516667 tx=105672 date=2017-02-07 17:37:58 progress=0.839488
But yes we know that problem due to the verification of zerocoin txs and bad peers (which causes your txs are verified over and over). It will be improved in the future.
Could you add these lines to your config and do a reindex and tell me whether it helps? Thanks for your patience.
connect=london.zcoin.io
connect=nyc.zcoin.io
connect=sf1.zcoin.io
connect=xzc.suprnova.cc
I decided to do a full resync instead to be sure (but saved my blockchain) and it went from 1 to 2500 in about 45 minutes. Definitely a massive improvement.
But it's stuck now for about 20 minutes at block 2500 and there's a bunch of block processing errors: ERROR: ProcessBlock() : already have block 1934 ERROR: ProcessBlock() : already have block 1227 ERROR: ProcessBlock() : already have block 1935 ERROR: ProcessBlock() : already have block 1228 ERROR: ProcessBlock() : already have block 1229 ERROR: ProcessBlock() : already have block 1936
I'm not sure why it receives blocks that are already processed.
Edit: nevermind, started going again. Edit#2: 13 hours later it's at 13948.
I let this run for a few nights and it's only at 11028. Was trying to import the blockchain data from znode.io which also seems to be down now. I'm on Windows 10 on Zcoin 0.8.7.8.
I also have this issue on Windows 10 x64 creators update. One improvement would be to introduce multithreading as it maxes out one core on my system when it could use 6 or 12 (if using hyperthreading).
This is now solved with the new core update.
https://github.com/zcoinofficial/zcoin/tree/core_upgrade