fixed incorrect bloomfilter cutoff date calculation

This commit is contained in:
Jędrzej Stuczyński
2024-07-23 11:44:46 +01:00
parent 04cafc72dc
commit 78ca539018
+1 -1
View File
@@ -822,7 +822,7 @@ impl EcashState {
// sanity check:
assert_eq!(
cutoff,
today + (constants::CRED_VALIDITY_PERIOD_DAYS as i64).days()
today + (constants::CRED_VALIDITY_PERIOD_DAYS as i64 - 1).days()
);
// remove the data we no longer need to hold, i.e. partial bloomfilters beyond max credential validity