adityapk00 / zecwallet-light-cli

Zecwallet Lightclient Library and CLI interface
MIT License
69 stars 65 forks source link

sync taking unexpectedly long and not completing (so far) #99

Open softminus opened 2 years ago

softminus commented 2 years ago

Starting up zecwallet-lite-cli after a period of not using it, and it stays at

sasha_work@seasonal-dream zecwallet-light-cli % ./target/debug/zecwallet-cli          
Lightclient connecting to https://lwdv3.zecwallet.co:443/
id: 1, blocks: 0%, decryptions: 0%, tx_scan: 0%
id: 1, blocks: 0%, decryptions: 0%, tx_scan: 0%
id: 1, blocks: 0%, decryptions: 0%, tx_scan: 0%
id: 1, blocks: 0%, decryptions: 0%, tx_scan: 0%

while using up lots of CPU for extremely long (I haven't seen it complete yet). Running it with -n does get it to the command, but then doing sync causes this likewise to happen. This is on 059be6208d7f1a753eefe8a899ed75bb2ba2bb49

adityapk00 commented 2 years ago

Can you try a couple of things:

  1. Build in --release mode (cargo build --release). It is very slow when using a debug binary
  2. Can you please sync to the latest HEAD and recompile?
softminus commented 2 years ago

Trying this now, thanks for your quick reply!