Skip to content

Commit

Permalink
set max_body_bytes to allow contract upload
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding committed Aug 28, 2024
1 parent 00398bd commit 27244a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocol/cmd/dydxprotocold/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27244a3

Please sign in to comment.