I restarted the wallet with -repairwallet, and the stakes that went on the fork are now 'Generated but not accepted', which should be fine - right? But it didn't return the blocks, so now my balance is way off.
Is there something else I need to do to get these coins back to the correct place?
Thanks
Please read carefully this section https://bit.diamonds/community/index.php/topic,97.msg631.html#msg631
Download all the necessary files. Replace the wallet to the new version 2.0.55
Remove all old files wallet (except file wallet.dat) and extract the files from the archive danbischain20150408.zip to the folder beside with a file wallet.dat
Yes, I've done this actually. I should have been more specific in my explanation. I did it once more just to be sure. My blocks are lined up with the block explorer (at the current time 873980), but the blocks from the orphan stakes did not return to my balance.