Linearise restore points

This commit is contained in:
Michael Sproul
2022-10-20 11:54:02 +11:00
parent fd800ce755
commit 3f71de8c2d
5 changed files with 47 additions and 32 deletions

View File

@@ -234,9 +234,12 @@ pub enum DBColumn {
ForkChoice,
#[strum(serialize = "pkc")]
PubkeyCache,
/// For the table mapping restore point numbers to state roots.
/// For the legacy table mapping restore point numbers to state roots.
#[strum(serialize = "brp")]
BeaconRestorePoint,
/// For the new table mapping restore point slots to compressed beacon states.
#[strum(serialize = "rps")]
BeaconRestorePointState,
#[strum(serialize = "bbr")]
BeaconBlockRoots,
#[strum(serialize = "bsr")]
@@ -291,7 +294,8 @@ impl DBColumn {
| Self::BeaconStateRoots
| Self::BeaconHistoricalRoots
| Self::BeaconRandaoMixes
| Self::BeaconBlockFrozen => 8,
| Self::BeaconBlockFrozen
| Self::BeaconRestorePointState => 8,
}
}
}