fixed incorrect bloomfilter cutoff date calculation

This commit is contained in:
Jędrzej Stuczyński
2024-07-23 11:44:46 +01:00
parent 4630eb6cd4
commit d9a2e87fc6
+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