Destination: clean ratchets to retained_ratchets

This commit is contained in:
JRG 2026-08-14 22:20:47 +03:00 • committed by Mark Qvist
parent 0d9bf5b862
commit 9b4947ef46

View file

@ -206,7 +206,7 @@ class Destination:
def _clean_ratchets(self):
if self.ratchets != None:
if len (self.ratchets) > self.retained_ratchets:
self.ratchets = self.ratchets[:Destination.RATCHET_COUNT]
self.ratchets = self.ratchets[:self.retained_ratchets]
def _persist_ratchets(self):
try: