Skip to content

Commit

Permalink
chore: default rpc params (#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 #256 
- [x] Closes #591

Co-authored-by: Rootul P <rootulp@gmail.com>
  • Loading branch information
rahulghangas and rootulp authored Nov 17, 2022
1 parent 80037d1 commit a1351c8
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 @@ -78,7 +78,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 a1351c8

Please sign in to comment.