From fd2a04a2cbf21866cba7e59e8ec96939db9d9af9 Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Wed, 4 Nov 2020 11:46:13 -0500 Subject: [PATCH] Reduce TTL for ack and mailbox messages --- p2p/src/main/java/bisq/network/p2p/AckMessage.java | 2 +- .../bisq/network/p2p/storage/payload/MailboxStoragePayload.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/src/main/java/bisq/network/p2p/AckMessage.java b/p2p/src/main/java/bisq/network/p2p/AckMessage.java index af1815e1031..ca62210ed5f 100644 --- a/p2p/src/main/java/bisq/network/p2p/AckMessage.java +++ b/p2p/src/main/java/bisq/network/p2p/AckMessage.java @@ -147,7 +147,7 @@ public static AckMessage fromProto(protobuf.AckMessage proto, int messageVersion @Override public long getTTL() { - return TimeUnit.DAYS.toMillis(10); + return TimeUnit.DAYS.toMillis(2); } @Override diff --git a/p2p/src/main/java/bisq/network/p2p/storage/payload/MailboxStoragePayload.java b/p2p/src/main/java/bisq/network/p2p/storage/payload/MailboxStoragePayload.java index a2e3eadd7ad..5bed966ee2d 100644 --- a/p2p/src/main/java/bisq/network/p2p/storage/payload/MailboxStoragePayload.java +++ b/p2p/src/main/java/bisq/network/p2p/storage/payload/MailboxStoragePayload.java @@ -117,6 +117,6 @@ public static MailboxStoragePayload fromProto(protobuf.MailboxStoragePayload pro @Override public long getTTL() { - return TimeUnit.DAYS.toMillis(15); + return TimeUnit.DAYS.toMillis(7); } }