Skip to content

Commit 58cd45f

Browse files
committed
rpc configure
1 parent 38b4ffc commit 58cd45f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/minitiad/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ func initTendermintConfig() *tmcfg.Config {
7070
cfg.Consensus.CreateEmptyBlocks = false
7171
cfg.Consensus.CreateEmptyBlocksInterval = time.Minute
7272

73+
// rpc configure
74+
cfg.RPC.ListenAddress = "tcp://0.0.0.0:26657"
75+
cfg.RPC.CORSAllowedOrigins = []string{"*"}
76+
7377
// block time to 0.5s
7478
cfg.Consensus.TimeoutPropose = 300 * time.Millisecond
7579
cfg.Consensus.TimeoutProposeDelta = 500 * time.Millisecond

0 commit comments

Comments
 (0)