Skip to content

Commit 461ca09

Browse files
committed
go/oasis-node: Bump default pruning config to 250_000 versions
Update defaults to 250_000 versions, so that node has enough consensus and runtime state to create at least two chekpoints if the checkpoint interval is 100_000. At the same time this is still far from the number of versions, that makes Sapphire pruning prohibitively slow.
1 parent 75c40ac commit 461ca09

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

.changelog/6449.trivial.md

Whitespace-only changes.

go/consensus/cometbft/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func DefaultConfig() Config {
235235
UpgradeStopDelay: time.Minute,
236236
Prune: PruneConfig{
237237
Strategy: PruneStrategyNone,
238-
NumKept: 3600,
238+
NumKept: 250_000,
239239
Interval: 2 * time.Minute,
240240
},
241241
Checkpointer: CheckpointerConfig{

go/runtime/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func DefaultConfig() Config {
521521
Prune: PruneConfig{
522522
Strategy: "none",
523523
Interval: 2 * time.Minute,
524-
NumKept: 600,
524+
NumKept: 250_000,
525525
},
526526
Indexer: IndexerConfig{
527527
BatchSize: 1000,

0 commit comments

Comments
 (0)