/*
 * This file is part of Bisq.
 *
 * Bisq is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at
 * your option) any later version.
 *
 * Bisq is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Bisq. If not, see <http://www.gnu.org/licenses/>.
 */

package bisq.common.app;

// We can define here special features the client is supporting.
// Useful for updates to new versions where a new data type would break backwards compatibility or to
// limit a node to certain behaviour and roles like the seed nodes.
// We don't use the Enum in any serialized data, as changes in the enum would break backwards compatibility. We use the ordinal integer instead.
// Sequence in the enum must not be changed (append only).
public enum Capability {
    TRADE_STATISTICS,
    TRADE_STATISTICS_2,
    ACCOUNT_AGE_WITNESS,
    SEED_NODE,
    DAO_FULL_NODE,
    PROPOSAL,
    BLIND_VOTE,
    ACK_MSG,
    RECEIVE_BSQ_BLOCK,
    DAO_STATE,
    BUNDLE_OF_ENVELOPES,
    SIGNED_ACCOUNT_AGE_WITNESS
}

@@ -1165,24 +1165,36 @@
 ility %7B%0A    
+@Deprecated 
 TRADE_STATIS
@@ -1202,134 +1202,502 @@
 ICS,
-%0A    TRADE_STATISTICS_2,%0A    ACCOUNT_AGE_WITNESS,%0A    SEED_NODE,%0A    DAO_FULL_NODE,%0A    PROPOSAL,%0A    BLIND_VOTE,%0A    ACK_MSG,
+       // Not required anymore as no old clients out there not having that support%0A    @Deprecated TRADE_STATISTICS_2,     // Not required anymore as no old clients out there not having that support%0A    @Deprecated ACCOUNT_AGE_WITNESS,    // Not required anymore as no old clients out there not having that support%0A    SEED_NODE,%0A    DAO_FULL_NODE,%0A    PROPOSAL,%0A    BLIND_VOTE,%0A    @Deprecated ACK_MSG,                // Not required anymore as no old clients out there not having that support
 %0A   

Add Deprecated annotation to old Capabilities