mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 11:32:09 +00:00
65f71b3a48
* `subscribeStaticWithSubnets`: Fix docstring. * `buildOptions`: Avoid `options` mutations. * `dv5Cfg`: Avoid mutation. * `RefreshENR`: Use default for all but Phase0. * `udp4`, `udp6`: Create enum. * `p2p.Config`: `BootstrapNodeAddr`==> `BootstrapNodeAddrs`. * `p2p.Config`: `Discv5BootStrapAddr` ==> `Discv5BootStrapAddrs`. * `TestScorers_BadResponses_Score`: Improve. * `BeaconNode`: Avoid mutation. * `TestStore_TrustedPeers`: Remove blankline. * Remove blank identifiers. * `privKey`: Keep the majority of code with low indentation. * `P2PPreregistration`: Return error instead of fatal log. * `parseBootStrapAddrs` => `ParseBootStrapAddrs` (export) * `p2p.Config`: Remove `BootstrapNodeAddrs`. * `NewService`: Avoid mutation when possible. * `Service`: Remove blank identifier. * `buildOptions`: Avoid `log.Fatalf` (make deepsource happy). * `registerGRPCGateway`: Use `net.JoinHostPort` (make deepsource happy). * `registerBuilderService`: Make deepsource happy. * `scorers`: Add `NoLock` suffix (make deepsource happy). * `scorerr`: Add some `NoLock`suffixes (making deepsource happy). * `discovery_test.go`. Remove init. Rationale: `rand.Seed` is deprecated: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. This makes deepsource happy as well. * `createListener`: Reduce cyclomatic complexity (make deepsource happy). * `startDB`: Reduce cyclomatic complexity (make deepsource happy). * `main`: Log a FATAL on error. This way, the error message is very readable. Before this commit, the error message is the less readable message in the logs. * `New`: Reduce cyclomatic complexity (make deepsource happy). * `main`: Avoid `App` mutation, and make deepsource happy. * Update beacon-chain/node/node.go Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> * `bootnodes` ==> `BootNodes` (Fix PR comment). * Remove duplicate `configureFastSSZHashingAlgorithm` since already done in `configureBeacon`. (Fix PR comment) * Add `TestCreateLocalNode`. (PR comment fix.) * `startModules` ==> `startBaseServices (Fix PR comment). * `buildOptions` return errors consistently. * `New`: Change ordering. --------- Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> |
||
---|---|---|
.. | ||
encoder | ||
peers | ||
testing | ||
types | ||
addr_factory_test.go | ||
addr_factory.go | ||
broadcaster_test.go | ||
broadcaster.go | ||
BUILD.bazel | ||
config.go | ||
connection_gater_test.go | ||
connection_gater.go | ||
dial_relay_node_test.go | ||
dial_relay_node.go | ||
discovery_test.go | ||
discovery.go | ||
doc.go | ||
fork_test.go | ||
fork_watcher.go | ||
fork.go | ||
gossip_scoring_params_test.go | ||
gossip_scoring_params.go | ||
gossip_topic_mappings_test.go | ||
gossip_topic_mappings.go | ||
handshake.go | ||
info.go | ||
interfaces.go | ||
iterator.go | ||
log.go | ||
message_id_test.go | ||
message_id.go | ||
monitoring.go | ||
options_test.go | ||
options.go | ||
parameter_test.go | ||
pubsub_filter_test.go | ||
pubsub_filter.go | ||
pubsub_fuzz_test.go | ||
pubsub_test.go | ||
pubsub_tracer.go | ||
pubsub.go | ||
rpc_topic_mappings_test.go | ||
rpc_topic_mappings.go | ||
sender_test.go | ||
sender.go | ||
service_test.go | ||
service.go | ||
subnets_test.go | ||
subnets.go | ||
topics.go | ||
utils_test.go | ||
utils.go | ||
watch_peers.go |