From 3d1b622d0e8176c0302a2263a2f893049b1fa0a9 Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Sun, 12 Sep 2021 12:03:16 -0600 Subject: [PATCH] feat(abci): use `committingClient` to allow parallel queries --- go.mod | 4 ++++ go.sum | 4 ++++ server/start.go | 2 +- testutil/network/util.go | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 86a20443bbb4..a2e4be36862d 100644 --- a/go.mod +++ b/go.mod @@ -58,4 +58,8 @@ replace google.golang.org/grpc => google.golang.org/grpc v1.33.2 replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 +// The following is to test committingClient (allowing parallel queries during +// write transactions): +replace github.com/tendermint/tendermint => github.com/agoric-labs/tendermint v0.34.12-alpha.agoric.8 + replace github.com/99designs/keyring => github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76 diff --git a/go.sum b/go.sum index 3cd550739795..93a8c37c5ce5 100644 --- a/go.sum +++ b/go.sum @@ -73,6 +73,10 @@ github.com/Workiva/go-datastructures v1.0.52/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3 github.com/Zilliqa/gozilliqa-sdk v1.2.1-0.20201201074141-dd0ecada1be6/go.mod h1:eSYp2T6f0apnuW8TzhV3f6Aff2SE8Dwio++U4ha4yEM= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= +github.com/agoric-labs/tendermint v0.34.12-alpha.agoric.7 h1:BQc+v59+LIRoSUo+hmysTVLPkKSKGxqs7cuw98MxlJg= +github.com/agoric-labs/tendermint v0.34.12-alpha.agoric.7/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0= +github.com/agoric-labs/tendermint v0.34.12-alpha.agoric.8 h1:Enx/u3VEVSuTySMyUVSIWlQRHAbQHrHTnDRSHKJS2Po= +github.com/agoric-labs/tendermint v0.34.12-alpha.agoric.8/go.mod h1:aeHL7alPh4uTBIJQ8mgFEE8VwJLXI1VD3rVOmH2Mcy0= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= diff --git a/server/start.go b/server/start.go index d26fc7ad7a7a..247042f8779b 100644 --- a/server/start.go +++ b/server/start.go @@ -264,7 +264,7 @@ func startInProcess(ctx *Context, clientCtx client.Context, appCreator types.App cfg, pvm.LoadOrGenFilePV(cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile()), nodeKey, - proxy.NewLocalClientCreator(app), + proxy.NewCommittingClientCreator(app), genDocProvider, node.DefaultDBProvider, node.DefaultMetricsProvider(cfg.Instrumentation), diff --git a/testutil/network/util.go b/testutil/network/util.go index e7542113a87b..5ddbd50840f6 100644 --- a/testutil/network/util.go +++ b/testutil/network/util.go @@ -44,7 +44,7 @@ func startInProcess(cfg Config, val *Validator) error { tmCfg, pvm.LoadOrGenFilePV(tmCfg.PrivValidatorKeyFile(), tmCfg.PrivValidatorStateFile()), nodeKey, - proxy.NewLocalClientCreator(app), + proxy.NewCommittingClientCreator(app), genDocProvider, node.DefaultDBProvider, node.DefaultMetricsProvider(tmCfg.Instrumentation),