Skip to content

Commit

Permalink
fix: set bootstrap node on DefaultBootstrapAddrStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Jan 26, 2024
1 parent 13819f8 commit ee12316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func DefaultConfigMainnet() *Config {
bootstrapNodes := make([]BootstrapInfo, 0)
if err := json.Unmarshal(bootstrapInfosBytes, &bootstrapNodes); err == nil {
for _, node := range bootstrapNodes {
conf.Network.BootstrapAddrStrings = append(conf.Network.BootstrapAddrStrings, node.Address)
conf.Network.DefaultBootstrapAddrStrings = append(conf.Network.BootstrapAddrStrings, node.Address)

Check failure on line 99 in config/config.go

View workflow job for this annotation

GitHub Actions / build-linux

appendAssign: append result not assigned to the same slice (gocritic)

Check failure on line 99 in config/config.go

View workflow job for this annotation

GitHub Actions / linting

appendAssign: append result not assigned to the same slice (gocritic)
}
}

Expand Down

0 comments on commit ee12316

Please sign in to comment.