Remove CapabilityRequiringPayload from TradeStatistics2

We do not have any old versions anymore which might not support
TradeStatistics2, so we can remove it.
This commit is contained in:
chimp1984 2019-09-06 11:49:21 +02:00
parent 206c4bc6e1
commit 7856722fa5
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -24,12 +24,9 @@ import bisq.core.monetary.Volume;
import bisq.core.offer.OfferPayload;
import bisq.core.offer.OfferUtil;
import bisq.network.p2p.storage.payload.CapabilityRequiringPayload;
import bisq.network.p2p.storage.payload.LazyProcessedPayload;
import bisq.network.p2p.storage.payload.PersistableNetworkPayload;
import bisq.common.app.Capabilities;
import bisq.common.app.Capability;
import bisq.common.crypto.Hash;
import bisq.common.proto.persistable.PersistableEnvelope;
import bisq.common.util.ExtraDataMapValidator;
@ -63,7 +60,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
@Slf4j
@Value
public final class TradeStatistics2 implements LazyProcessedPayload, PersistableNetworkPayload, PersistableEnvelope, CapabilityRequiringPayload {
public final class TradeStatistics2 implements LazyProcessedPayload, PersistableNetworkPayload, PersistableEnvelope {
public static final String ARBITRATOR_ADDRESS = "arbAddr";
private final OfferPayload.Direction direction;
@ -213,11 +210,6 @@ public final class TradeStatistics2 implements LazyProcessedPayload, Persistable
// API
///////////////////////////////////////////////////////////////////////////////////////////
@Override
public Capabilities getRequiredCapabilities() {
return new Capabilities(Capability.TRADE_STATISTICS_2);
}
@Override
public byte[] getHash() {
return hash;