Skip to content

Commit

Permalink
rpc configure
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed May 7, 2024
1 parent e153ffe commit 0eb3655
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/minitiad/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0eb3655

Please sign in to comment.