From 9d160117bbec4d8cb48e339785e5435f14195c3c Mon Sep 17 00:00:00 2001 From: egon-wm Date: Tue, 4 Jun 2024 09:54:50 +0900 Subject: [PATCH] fix: adjust boot node count (hotfix to dev) (#100) fix: adjust boot node count --- cmd/utils/flags.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 96e8cd654c53..6786ac702d82 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -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)