From 27244a37dc14d23f5a8936f17dc5ebbab78733fe Mon Sep 17 00:00:00 2001 From: Teddy Ding Date: Wed, 14 Aug 2024 12:16:15 -0400 Subject: [PATCH] set max_body_bytes to allow contract upload --- protocol/cmd/dydxprotocold/cmd/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocol/cmd/dydxprotocold/cmd/config.go b/protocol/cmd/dydxprotocold/cmd/config.go index 56429a5762..505840644e 100644 --- a/protocol/cmd/dydxprotocold/cmd/config.go +++ b/protocol/cmd/dydxprotocold/cmd/config.go @@ -95,6 +95,9 @@ func initTendermintConfig() *tmcfg.Config { cfg.RPC.MaxOpenConnections = 8000 cfg.RPC.GRPCMaxOpenConnections = 8000 + // TODO(cosmwasm feature branch): Set the maximum body bytes to 6MB. + cfg.RPC.MaxBodyBytes = 6_000_000 + // Mempool config. // We specifically are using a number greater than max QPS (currently set at 5000) * ShortBlockWindow to prevent // a replay attack that is possible with short-term order placements and cancellations. The attack would consume