Skip to content

Commit

Permalink
fix: adjust boot node count (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
egonspace authored Jun 3, 2024
2 parents c7ab7cf + f2e09d3 commit fb8ee2c
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 fb8ee2c

Please sign in to comment.