enable resending payment received msgs based on offer protocol version

This commit is contained in:
woodser 2025-03-18 19:10:56 -04:00
parent 0896e10d97
commit cce7c204f3
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF

View file

@ -54,8 +54,6 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
public class SellerProtocol extends DisputeProtocol {
private static final long RESEND_PAYMENT_RECEIVED_MSGS_AFTER = 1741629525730L; // Mar 10 2025 17:58 UTC
enum SellerEvent implements FluentProtocol.Event {
STARTUP,
DEPOSIT_TXS_CONFIRMED,
@ -100,7 +98,7 @@ public class SellerProtocol extends DisputeProtocol {
}
private boolean resendPaymentReceivedMessagesEnabled() {
return trade.getTakeOfferDate().getTime() > RESEND_PAYMENT_RECEIVED_MSGS_AFTER;
return trade.getOffer().getOfferPayload().getProtocolVersion() >= 2;
}
@Override