cosmos-sdk/store/types
Aleksandr Bezobchuk 6b24ada743
refactor: update default pruning strategy (#9859)
The `default` pruning strategy, specifically the total number of recent blocks to keep (currently 100), was decided on completely arbitrary. 

I propose we change it to be enough blocks given that the typical block time is 5s and typical unbonding period is 21 days:
(3600*(24/5)) * 21 = 362880.

I propose this because anyone wishing to run an IBC relayer, which will be most chains, will have to be required to use `custom` to set it to this value anyway. So why not just make it the default and make it easier for operators.

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
2021-08-06 14:23:13 +00:00
..
commit_info.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00
commit_info.pb.go Update gogo proto deps with v1.3.2 security fixes (#8350) 2021-01-15 19:45:34 +00:00
errors.go Switch IAVL Store query to use ics proofs (#6324) 2020-06-08 15:02:25 -04:00
gas.go docs: Add godocs to GasMeter methods (#9665) 2021-07-12 23:17:01 +00:00
gas_test.go types: Inconsistent limit on InfiniteGasMeter and add GasLeft func to GasMeter (#9651) 2021-07-09 10:38:25 -04:00
iterator.go Merge PR #5435: Added iterator that allows to read only requested values 2019-12-26 10:33:34 -05:00
iterator_test.go Merge PR #6475: Pruning Refactor 2020-06-22 16:31:33 -04:00
listening.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
listening.pb.go Fix proto format (#9279) 2021-05-07 21:33:17 +00:00
listening_test.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
proof.go tendermint: update to rc3 (#6892) 2020-08-14 13:58:53 -04:00
pruning.go refactor: update default pruning strategy (#9859) 2021-08-06 14:23:13 +00:00
pruning_test.go store/types: Fix pruning opts validation (#6511) 2020-06-25 16:41:44 +00:00
snapshot.pb.go Update gogo proto deps with v1.3.2 security fixes (#8350) 2021-01-15 19:45:34 +00:00
store.go ADR-038 Part 1: WriteListener, listen.KVStore, MultiStore and KVStore updates (#8551) 2021-03-30 16:13:51 -04:00
store_test.go Add validation to prevent empty store keys (#6754) 2020-07-20 18:05:01 +02:00
utils.go types: add kv type (#6897) 2020-07-30 14:53:02 +00:00
utils_test.go fix DiffKVStores(), store/types gets 100% coverage (#5730) 2020-03-02 00:27:03 +00:00
validity.go Add validation to prevent empty store keys (#6754) 2020-07-20 18:05:01 +02:00
validity_test.go Add validation to prevent empty store keys (#6754) 2020-07-20 18:05:01 +02:00