mirror of
https://github.com/Qortal/qortal.git
synced 2025-06-22 15:11:22 +00:00
Fixed bug which required a node to hold local trade presences before it would request any.
This caused large gaps with no presence data. They are removed when they expire, causing the local count to drop to zero, and the node would only start requesting them again once a peer had pushed one or more entries proactively.
This commit is contained in:
parent
41438e1b48
commit
e2342e2327
@ -468,9 +468,6 @@ public class TradeBot implements Listener {
|
|||||||
|
|
||||||
List<TradePresenceData> safeTradePresences = List.copyOf(this.safeAllTradePresencesByPubkey.values());
|
List<TradePresenceData> safeTradePresences = List.copyOf(this.safeAllTradePresencesByPubkey.values());
|
||||||
|
|
||||||
if (safeTradePresences.isEmpty())
|
|
||||||
return;
|
|
||||||
|
|
||||||
LOGGER.debug("Broadcasting all {} known trade presences. Next broadcast timestamp: {}",
|
LOGGER.debug("Broadcasting all {} known trade presences. Next broadcast timestamp: {}",
|
||||||
safeTradePresences.size(), nextTradePresenceBroadcastTimestamp
|
safeTradePresences.size(), nextTradePresenceBroadcastTimestamp
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user