diff --git a/src/main/java/org/qortal/controller/tradebot/TradeBot.java b/src/main/java/org/qortal/controller/tradebot/TradeBot.java index 1786a130..4a44eaa9 100644 --- a/src/main/java/org/qortal/controller/tradebot/TradeBot.java +++ b/src/main/java/org/qortal/controller/tradebot/TradeBot.java @@ -239,6 +239,11 @@ public class TradeBot implements Listener { if (!(event instanceof Synchronizer.NewChainTipEvent)) return; + // Don't process trade bots or broadcast presence timestamps if our chain is more than 30 minutes old + final Long minLatestBlockTimestamp = NTP.getTime() - (30 * 60 * 1000L); + if (!Controller.getInstance().isUpToDate(minLatestBlockTimestamp)) + return; + synchronized (this) { expireOldPresenceTimestamps();