From 96f539fad01cf2295a91e39cd53e1d15e48113d9 Mon Sep 17 00:00:00 2001 From: Rahul Ghangas Date: Thu, 17 Nov 2022 11:43:41 +0530 Subject: [PATCH] chore: default rpc params (#892) Configure default rpc params to factor in large txns and long block times - [x] Closes #256 - [x] Closes #591 Co-authored-by: Rootul P --- cmd/celestia-appd/cmd/root.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/celestia-appd/cmd/root.go b/cmd/celestia-appd/cmd/root.go index 4f213f2d0d..d6fd6bdf03 100644 --- a/cmd/celestia-appd/cmd/root.go +++ b/cmd/celestia-appd/cmd/root.go @@ -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