feat(tools/benchmark): introduce benchmark module (#22778)

This commit is contained in:
Matt Kocubinski
2024-12-12 15:33:23 +00:00
committed by GitHub
parent 02fe18c7dc
commit 14c841c86e
43 changed files with 7325 additions and 9 deletions
+9
View File
@@ -96,6 +96,7 @@ func init() {
codec.ProvideProtoCodec,
codec.ProvideAddressCodec,
ProvideKVStoreKey,
ProvideKVStoreFactory,
ProvideTransientStoreKey,
ProvideMemoryStoreKey,
ProvideGenesisTxHandler,
@@ -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}
}
}