Skip to content

Commit

Permalink
fix: adjust boot node count
Browse files Browse the repository at this point in the history
  • Loading branch information
egonspace committed Jun 3, 2024
1 parent c7ab7cf commit f2e09d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,9 @@ func setRandomBootstrapNodes(ctx *cli.Context, bootnodes []string) []string {
}
// select random bootnodes
selectcount := params.BootnodeCount
if selectcount > bootnodeslen {
selectcount = bootnodeslen
}
urls := make([]string, selectcount)
tempnode := make([]string, bootnodeslen)
copy(tempnode, bootnodes)
Expand Down

0 comments on commit f2e09d3

Please sign in to comment.