Dónal Murray
2ea6bcf195
[pallet_broker] Remove leases that have already expired in rotate_sale ( #3213 )
...
Leases can be force set, but since `Leases` is a `StorageValue`, if a
lease misses its sale rotation in which it should expire, it can never
be cleared.
This can happen if a lease is added with an `until` timeslice that lies
in a region whose sale has already started or has passed, even if the
timeslice itself hasn't passed.
This solves that issue in a minimal way, with all expired leases being
cleaned up in each sale rotation, not just the ones that are expiring in
the coming region.
TODO:
- [x] Write test
2024-02-08 12:23:36 +00:00
..
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-26 18:14:03 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-01-26 18:14:03 +00:00
2024-01-31 06:19:16 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-02-08 12:23:36 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-01-26 18:14:03 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 12:45:40 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-01-26 18:14:03 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-27 13:03:48 +00:00
2024-02-06 13:01:29 +00:00
2024-01-26 18:14:03 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-01-26 18:14:03 +00:00
2024-01-26 18:14:03 +00:00
2024-02-06 13:01:29 +00:00
2024-02-06 13:01:29 +00:00
2024-01-26 18:14:03 +00:00
2024-01-31 06:19:16 +00:00
2024-01-26 18:14:03 +00:00
2024-01-31 06:19:16 +00:00
2024-02-06 13:01:29 +00:00
2024-01-31 06:19:16 +00:00
2024-01-31 06:19:16 +00:00
2024-01-31 06:19:16 +00:00
2024-01-24 17:33:28 +00:00
2023-09-04 12:02:32 +03:00