Skip to content

Commit

Permalink
chore: default rpc params (celestiaorg#892)
Browse files Browse the repository at this point in the history
Configure default rpc params to factor in large txns and long block
times

- [x] Closes celestiaorg#256 
- [x] Closes celestiaorg#591

Co-authored-by: Rootul P <rootulp@gmail.com>
  • Loading branch information
2 people authored and rach-id committed Nov 17, 2022
1 parent 2dac04c commit 96f539f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/celestia-appd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ func NewRootCmd() *cobra.Command {
return err
}

// change tendermint config for celestia app
// set broadcast timeout to be 50 seconds in order to avoid timeouts for long block times
// set max body bytes for transaction to be 8 Mb
// TODO: maybe we should make this timeout configurable?
tmCfg := tmcfg.DefaultConfig()
tmCfg.RPC.TimeoutBroadcastTxCommit = 50 * time.Second
tmCfg.RPC.MaxBodyBytes = int64(8388608) // 8 MiB
tmCfg.Mempool.TTLNumBlocks = 10
tmCfg.Mempool.MaxTxBytes = 2 * 1024 * 1024 // 2 MiB
tmCfg.Mempool.Version = "v1" // prioritized mempool
Expand Down

0 comments on commit 96f539f

Please sign in to comment.