celestia-node icon indicating copy to clipboard operation
celestia-node copied to clipboard

refactor(share/pruner): make pruner init to start from 0

Open walldiss opened this issue 8 months ago • 0 comments

Implementation ideas

Pruner starts with initial checkpoint with height 1, but still needs to prune that height on first run. It is managed by

if lastPruned.Height() == 1 {
		headers = append([]*header.ExtendedHeader{lastPruned}, headers...)
	}

Rework initial checkpoint and logic for first run to use 0 height at init.

walldiss avatar Jun 06 '24 10:06 walldiss