From 0eb3655f5b7e27d71dfad2e5917fbaa51166fbad Mon Sep 17 00:00:00 2001 From: beer-1 <147697694+beer-1@users.noreply.github.com> Date: Tue, 7 May 2024 19:27:11 +0900 Subject: [PATCH] rpc configure --- cmd/minitiad/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/minitiad/config.go b/cmd/minitiad/config.go index 07e0f87..56efe42 100644 --- a/cmd/minitiad/config.go +++ b/cmd/minitiad/config.go @@ -69,6 +69,10 @@ func initTendermintConfig() *tmcfg.Config { cfg.Consensus.CreateEmptyBlocks = false cfg.Consensus.CreateEmptyBlocksInterval = time.Minute + // rpc configure + cfg.RPC.ListenAddress = "tcp://0.0.0.0:26657" + cfg.RPC.CORSAllowedOrigins = []string{"*"} + // block time to 0.5s cfg.Consensus.TimeoutPropose = 300 * time.Millisecond cfg.Consensus.TimeoutProposeDelta = 500 * time.Millisecond