Skip to content

Commit

Permalink
test: reduce testnode overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Nov 27, 2024
1 parent 2ca0feb commit 8c1727b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/util/testnode/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,7 @@ func DefaultTendermintConfig() *tmconfig.Config {
// node produces blocks.
tmCfg.Consensus.TimeoutCommit = 1 * time.Millisecond

// Override the mempool's MaxTxBytes to allow the testnode to accept a
// transaction that fills the entire square. Any blob transaction larger
// than the square size will still fail no matter what.
maxTxBytes := appconsts.DefaultUpperBoundMaxBytes
tmCfg.Mempool.MaxTxBytes = maxTxBytes

// Override the MaxBodyBytes to allow the testnode to accept very large
// transactions and respond to queries with large responses (200 MiB was
// chosen only as an arbitrary large number).
tmCfg.RPC.MaxBodyBytes = 200 * mebibyte

tmCfg.RPC.TimeoutBroadcastTxCommit = time.Minute

// set all the ports to random open ones
// Set all the ports to random open ones.
tmCfg.RPC.ListenAddress = fmt.Sprintf("tcp://127.0.0.1:%d", mustGetFreePort())
tmCfg.P2P.ListenAddress = fmt.Sprintf("tcp://127.0.0.1:%d", mustGetFreePort())
tmCfg.RPC.GRPCListenAddress = fmt.Sprintf("tcp://127.0.0.1:%d", mustGetFreePort())
Expand Down

0 comments on commit 8c1727b

Please sign in to comment.