Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func New ¶
New constructs a history pruner migrator. retainedBlocks is the number of blocks retained below the L1-confirmed head; the head itself is always retained on top. retainedBlocks == 0 keeps only the L1 head plus the reorg-safe window above it. minAge layers a wallclock floor on top: blocks whose on-chain timestamp is younger than minAge are also retained, mirroring the running pruner's --prune-min-age. Zero disables it.
func (*Migrator) Before ¶
Before restores stager/restorer progress and the pinned cutoff from persisted intermediate state. A nil/empty state means a fresh run — the cutoff is computed on the first Migrate call. Once pinned, retainedBlocks and minAge config changes between runs are ignored until completion.