diff --git a/core/src/main/java/haveno/core/offer/OfferPayload.java b/core/src/main/java/haveno/core/offer/OfferPayload.java index 3153ccfb2b..e984fc8e00 100644 --- a/core/src/main/java/haveno/core/offer/OfferPayload.java +++ b/core/src/main/java/haveno/core/offer/OfferPayload.java @@ -55,7 +55,7 @@ import java.util.concurrent.TimeUnit; @Getter @Slf4j public final class OfferPayload implements ProtectedStoragePayload, ExpirablePayload, RequiresOwnerIsOnlinePayload { - public static final long TTL = TimeUnit.MINUTES.toMillis(9); + public static final long TTL = TimeUnit.MINUTES.toMillis(11); protected final String id; protected final long date; diff --git a/core/src/main/java/haveno/core/offer/OpenOfferManager.java b/core/src/main/java/haveno/core/offer/OpenOfferManager.java index 94eb2650a8..9150c64598 100644 --- a/core/src/main/java/haveno/core/offer/OpenOfferManager.java +++ b/core/src/main/java/haveno/core/offer/OpenOfferManager.java @@ -112,8 +112,8 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe private static final String THREAD_ID = OpenOfferManager.class.getSimpleName(); private static final long RETRY_REPUBLISH_DELAY_SEC = 10; private static final long REPUBLISH_AGAIN_AT_STARTUP_DELAY_SEC = 30; - private static final long REPUBLISH_INTERVAL_MS = TimeUnit.MINUTES.toMillis(40); - private static final long REFRESH_INTERVAL_MS = TimeUnit.MINUTES.toMillis(6); + private static final long REPUBLISH_INTERVAL_MS = TimeUnit.MINUTES.toMillis(30); + private static final long REFRESH_INTERVAL_MS = OfferPayload.TTL / 2; private final CoreContext coreContext; private final KeyRing keyRing; diff --git a/p2p/src/main/java/haveno/network/p2p/peers/peerexchange/Peer.java b/p2p/src/main/java/haveno/network/p2p/peers/peerexchange/Peer.java index d062314597..5327245b4f 100644 --- a/p2p/src/main/java/haveno/network/p2p/peers/peerexchange/Peer.java +++ b/p2p/src/main/java/haveno/network/p2p/peers/peerexchange/Peer.java @@ -33,7 +33,7 @@ import java.util.Date; @Getter @Slf4j public final class Peer implements HasCapabilities, NetworkPayload, PersistablePayload, SupportedCapabilitiesListener { - private static final int MAX_FAILED_CONNECTION_ATTEMPTS = 5; + private static final int MAX_FAILED_CONNECTION_ATTEMPTS = 6; private final NodeAddress nodeAddress; private final long date;