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

Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2024-12-13 08:49:21 +01:00
committed by GitHub
co-authored by Matt Kocubinski Julien Robert
parent af4ecd9571
commit 1fbc00394a
41 changed files with 3445 additions and 28 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}
}
}