You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Record delisted pools in a dedicated table instead of using a field in
the `pool_registrations` table.
In the updated schema, a pool is delisted if (and only if) there is a
single row containing that pool's id in the `delisted_pools` table.
This solution has several advantages:
1. We only need a single database row to record that a pool is delisted.
2. We no longer need to carefully to ensure that all registration records
for a particular pool have the same delisted status. A pool is either
delisted or not delisted: the schema rules out all intermediate states.
3. Pools automatically remain delisted when rollbacks occur or when new
certificates are published, with no extra effort.
4. The `putPoolRegistration` function no longer needs to read the
most-recently-written registration entry before adding a new entry.
5. Each row in the `pool_registrations` table is now just an immutable
record of a registration certificate.
6. The `PoolFlag` type is no longer necessary.
0 commit comments