mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-23 03:59:36 +00:00
only republish seller trades
This commit is contained in:
parent
cfd89b6da1
commit
36e2f8675c
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ import haveno.core.locale.CurrencyTuple;
|
||||||
import haveno.core.locale.CurrencyUtil;
|
import haveno.core.locale.CurrencyUtil;
|
||||||
import haveno.core.locale.Res;
|
import haveno.core.locale.Res;
|
||||||
import haveno.core.provider.price.PriceFeedService;
|
import haveno.core.provider.price.PriceFeedService;
|
||||||
import haveno.core.trade.BuyerTrade;
|
import haveno.core.trade.SellerTrade;
|
||||||
import haveno.core.trade.Trade;
|
import haveno.core.trade.Trade;
|
||||||
import haveno.core.util.JsonUtil;
|
import haveno.core.util.JsonUtil;
|
||||||
import haveno.network.p2p.P2PService;
|
import haveno.network.p2p.P2PService;
|
||||||
|
@ -163,8 +163,8 @@ public class TradeStatisticsManager {
|
||||||
long ts = System.currentTimeMillis();
|
long ts = System.currentTimeMillis();
|
||||||
Set<P2PDataStorage.ByteArray> hashes = tradeStatistics3StorageService.getMapOfAllData().keySet();
|
Set<P2PDataStorage.ByteArray> hashes = tradeStatistics3StorageService.getMapOfAllData().keySet();
|
||||||
trades.forEach(trade -> {
|
trades.forEach(trade -> {
|
||||||
if (trade instanceof BuyerTrade) {
|
if (!(trade instanceof SellerTrade)) {
|
||||||
log.debug("Trade: {} is a buyer trade, we only republish we have been seller.",
|
log.debug("Trade: {} is not a seller trade, we only republish if we were seller",
|
||||||
trade.getShortId());
|
trade.getShortId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue