This is to track the regression introduced in master, which needs fixing for 0.14. See #9240, #9371, etc.
{
    LOCK(cs_wallet); 
    if (nWalletVersion >= nVersion)
        return true;
    
    if (fExplicit && nVersion > nWalletMaxVersion)
            nVersion = FEATURE_LATEST;
    nWalletVersion = nVersion;
    if (nVersion > nWalletMaxVersion)
        nWalletMaxVersion = nVersion;
    if (fFileBacked)
    {
        CWalletDB* pwalletdb = pwalletdbIn ? pwalletdbIn : new CWalletDB(strWalletFile);
        if (nWalletVersion > 40000)
            pwalletdb->WriteMinVersion(nWalletVersion);
        if (!pwalletdbIn)
            delete pwalletdb;
    }
    return true;
}
bool CWallet::SetMaxVersion(int nVersion)
{
    LOCK(cs_wallet); 
    
    if (nWalletVersion > nVersion)
        return false;
    nWalletMaxVersion = nVersion;
    return true;
}
set<uint256> CWallet::GetConflicts(const uint256& txid) const