mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
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:
parent
206c4bc6e1
commit
7856722fa5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user