645@@ -646,20 +646,17 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
646 return result;
647 }
648
649-DBErrors CWalletDB::FindWalletTx(CWallet* pwallet, vector<uint256>& vTxHash, vector<CWalletTx>& vWtx)
650+DBErrors CWalletDB::FindWalletTx(vector<uint256>& vTxHash, vector<CWalletTx>& vWtx)
651 {
652- pwallet->vchDefaultKey = CPubKey();
What was the purpose of this line? (added in 518f3bda)
That probably should have been moved to ZapWalletTx. It wiped the default key, to make sure a new key would be generated next time. The default key is effectively unused currently, we should remove it entirely.
I think I removed this because it’s no longer in use. But agree with
@sipa. We should remove it entirely.
I tried writing a patch to remove it, but I believe we basically can’t without breaking backward compatibility for wallet files.