Remove coinstake transactions in orphaned blocks and refresh wallet.