From ecc6eb7e7af97cf3d4afb45aeccd04dc1f505d5a Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Thu, 20 Oct 2022 17:22:32 -0600 Subject: [PATCH 1/2] Populate the PruningKeepEvery config entry in GetConfig. --- CHANGELOG.md | 1 + server/config/config.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0132b918c4fd..cf362440b9fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * [#13588](https://github.com/cosmos/cosmos-sdk/pull/13588) Fix regression in distrubtion.WithdrawDelegationRewards when rewards are zero * [#13564](https://github.com/cosmos/cosmos-sdk/pull/13564) - Fix `make proto-gen`. +* TODO(link) Use the pruning-keep-every field again. ## v0.45.9 - 2022-10-14 diff --git a/server/config/config.go b/server/config/config.go index e7dc56ae833c..39f07558e42a 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -277,6 +277,7 @@ func GetConfig(v *viper.Viper) (Config, error) { InterBlockCache: v.GetBool("inter-block-cache"), Pruning: v.GetString("pruning"), PruningKeepRecent: v.GetString("pruning-keep-recent"), + PruningKeepEvery: v.GetString("pruning-keep-every"), PruningInterval: v.GetString("pruning-interval"), HaltHeight: v.GetUint64("halt-height"), HaltTime: v.GetUint64("halt-time"), From 95d95681656e0b2bf9ae78d3cc5ff0009a23d74f Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Thu, 20 Oct 2022 17:37:20 -0600 Subject: [PATCH 2/2] Update changlog. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf362440b9fa..8fdc55fdbe67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,7 +50,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * [#13588](https://github.com/cosmos/cosmos-sdk/pull/13588) Fix regression in distrubtion.WithdrawDelegationRewards when rewards are zero * [#13564](https://github.com/cosmos/cosmos-sdk/pull/13564) - Fix `make proto-gen`. -* TODO(link) Use the pruning-keep-every field again. +* (server) [#13610](https://github.com/cosmos/cosmos-sdk/pull/13610) Read the pruning-keep-every field again. ## v0.45.9 - 2022-10-14