1. made a copy of my blockchain (directory bc2)
2. prune it. Happy it works
3. copy bc2 to datadir bc1
4. start my client
When copying/backuping/recovering the database like this, make sure you have both
chainstate/ index/ and the latest (or all)
blk00xx.dat rev00xx.datIn case you fail to do this correctly, bitcoin will throw it away and start synchronizing from start. At this point you should shut it down and make sure again you have all (
chainstate/ index/,
blk00xx.dat rev00xx.dat) set up correctly
My guess is pruning made something with index-files in .bitcoin - while my datadir is somewhere else. Why this disrupted the wallet.dat remains a mystery for me.
Well wallet for example remembers the longest blockchain. But in general bitcoin doesn't simply trash wallets like this. It was probalby overwriten by you when you coppied whole .bitcoin folder including the wallet
When playing around with wallets you need to be extra careful and make sure you copy them . moving whole bitcoin folder with wallet in it is a really terrible idea.