Assume that when a wallet transaction has a valid block hash and transaction position in it, the transaction is actually there. We’re already trusting wallet data in a much more fundamental way anyway.
To prevent backward compatibility issues, a new record is used for storing the block locator in the wallet. Old wallets will see a wallet file synchronized up to the genesis block, and rescan automatically.
Fixes #6536 using a suggestion by @jonasschnelli to retain backward compatibility.