Symptoms


The PIVX Core wallet will not sync and you are not getting any peers or find all new peers are added to your banlist



Cause


This can be caused by running a forked chain or old wallet.  Your wallet would not accept any of the blocks the real network provides it and bans everyone.  


There is currently a bug going around where an improper shutdown can cause bad data in the zerocoin cache, resulting in rejection of all blocks and banning peers as outlined above. Luckily the devs have identified the issue, created the fix, and pulled it into the master branch on github so it will be included in the next update. 



Resolution

  1. Make sure you are running the latest wallet software from: https://pivx.org/wallet/

  2. Make sure you are not forked off onto the incorrect chain:  https://pivx.bitcoiner.me/am-i-forked/
    If you are forked, please follow the steps on this page: https://pivx.freshdesk.com/support/solutions/articles/30000029354-how-to-resync-your-blockchain-cache

  3. pivx-qt (GUI): Use the debug dialog to enter the command 'clearbanned'
    pivx-cli (CLI): Use the command "pivx-cli clearbanned"

    See if your wallet starts syncing within a few minutes, otherwise proceed to step 4

  4. Follow the steps in this link and use Method 4: https://pivx.freshdesk.com/support/solutions/articles/30000029354-how-to-resync-your-blockchain-cache

    Your wallet will sync from scratch and you should be all set.  If not, please contact support