Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(store/v2): full iavl/v2 support [WIP] #22838

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f4834de
initial x/benchmark
kocubinski Dec 4, 2024
e4331b5
build works
kocubinski Dec 5, 2024
9a846dc
fix import
kocubinski Dec 5, 2024
e605381
add provider
kocubinski Dec 5, 2024
747802c
do not test migrations for x/benchmark
kocubinski Dec 5, 2024
07d3c37
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 5, 2024
c481721
cleaner filter
kocubinski Dec 5, 2024
4b0dbdc
Add README and CHANGELOG
kocubinski Dec 5, 2024
ca47403
mv x/benchmark -> tools/
kocubinski Dec 5, 2024
554408d
fix proto gen
kocubinski Dec 5, 2024
f9c3575
go mod tidy all
kocubinski Dec 5, 2024
611e9d1
add CI entries
kocubinski Dec 5, 2024
ba608a3
fix(confix): correctly distinguish server/v2 config
kocubinski Dec 5, 2024
777966e
Merge branch 'kocu/server-v2-config' into kocu/x-benchmark-v2
kocubinski Dec 5, 2024
ac0080a
latest iavl/v2 work with test suite passing
kocubinski Dec 5, 2024
746abef
commit store with concurrent commit
kocubinski Dec 5, 2024
e157e37
iavl v2 integration tests passing
kocubinski Dec 8, 2024
c18378d
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 8, 2024
f2e9c0d
improve rate logging
kocubinski Dec 8, 2024
ec91784
improve rate logging
kocubinski Dec 8, 2024
4b43c99
rm mutex and iavlv import/export
kocubinski Dec 10, 2024
5d0e511
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 10, 2024
0693d8c
go mod tidy all
kocubinski Dec 10, 2024
91d4291
add comments, some review fixes
kocubinski Dec 11, 2024
1d25773
fix init genesis order
kocubinski Dec 11, 2024
616b952
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 11, 2024
7a086b1
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/x-bench…
kocubinski Dec 11, 2024
256ca93
a store/v1 replace directive is required
kocubinski Dec 11, 2024
0e38799
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/bench-i…
kocubinski Dec 11, 2024
944ac1f
go mod tidy
kocubinski Dec 11, 2024
a3d4808
Merge branch 'kocu/x-benchmark-v2' into kocu/bench-iavlv2
kocubinski Dec 11, 2024
372373a
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/bench-i…
kocubinski Dec 12, 2024
8626463
tx async
kocubinski Dec 12, 2024
d469c30
integrate with config
kocubinski Dec 30, 2024
15a7c38
almost done
kocubinski Dec 30, 2024
d1b1193
Merge branch 'main' of github.com:cosmos/cosmos-sdk into kocu/bench-i…
kocubinski Dec 30, 2024
31c9a6d
iavl/v2 alpha candidate
kocubinski Dec 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add provider
  • Loading branch information
kocubinski committed Dec 5, 2024
commit e6053811e9d4c36ef17a2f0de0e49c73f8dbd3ec
9 changes: 9 additions & 0 deletions runtime/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func init() {
codec.ProvideProtoCodec,
codec.ProvideAddressCodec,
ProvideKVStoreKey,
ProvideKVStoreFactory,
ProvideTransientStoreKey,
ProvideMemoryStoreKey,
ProvideGenesisTxHandler,
Expand Down Expand Up @@ -296,3 +297,11 @@ func ProvideTransientStoreService(
func ProvideCometService() comet.Service {
return NewContextAwareCometInfoService()
}

func ProvideKVStoreFactory(app *AppBuilder) store.KVStoreServiceFactory {
return func(key []byte) store.KVStoreService {
sk := storetypes.NewKVStoreKey(string(key))
registerStoreKey(app, sk)
return kvStoreService{key: sk}
}
}
4 changes: 2 additions & 2 deletions simapp/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ var (
Config: appconfig.WrapAny(&benchmarkmodulev1.Module{
GenesisParams: &benchmarkmodulev1.GeneratorParams{
Seed: 34,
BucketCount: 2,
GenesisCount: 500_000,
BucketCount: 1,
GenesisCount: 100,
KeyMean: 64,
KeyStdDev: 12,
ValueMean: 1024,
Expand Down
4 changes: 2 additions & 2 deletions simapp/v2/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ var (
Config: appconfig.WrapAny(&benchmarkmodulev1.Module{
GenesisParams: &benchmarkmodulev1.GeneratorParams{
Seed: 34,
BucketCount: 2,
GenesisCount: 5_000_000,
BucketCount: 1,
GenesisCount: 100,
KeyMean: 64,
KeyStdDev: 12,
ValueMean: 1024,
Expand Down
Loading