chore: fix some comments (#14270)

Signed-off-by: shangchengbabaiban <shuang.cui@live.cn>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
shangchengbabaiban
2024-07-31 20:06:15 +09:00
committed by GitHub
parent 09028033c0
commit be80728320
3 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ func (b *BeaconState) SetPendingConsolidations(val []*ethpb.PendingConsolidation
return nil return nil
} }
// SetEarliestConsolidationEpoch is a mutating call to the beacon state which sets the earlest // SetEarliestConsolidationEpoch is a mutating call to the beacon state which sets the earliest
// consolidation epoch value. This method requires access to the Lock on the state and only applies // consolidation epoch value. This method requires access to the Lock on the state and only applies
// in electra or later. // in electra or later.
func (b *BeaconState) SetEarliestConsolidationEpoch(epoch primitives.Epoch) error { func (b *BeaconState) SetEarliestConsolidationEpoch(epoch primitives.Epoch) error {

View File

@@ -108,7 +108,7 @@ type Settings struct {
DefaultConfig *Option DefaultConfig *Option
} }
// ShouldBeSaved goes through checks to see if the value should be savable // ShouldBeSaved goes through checks to see if the value should be saveable
// Pseudocode: conditions for being saved into the database // Pseudocode: conditions for being saved into the database
// 1. settings are not nil // 1. settings are not nil
// 2. proposeconfig is not nil (this defines specific settings for each validator key), default config can be nil in this case and fall back to beacon node settings // 2. proposeconfig is not nil (this defines specific settings for each validator key), default config can be nil in this case and fall back to beacon node settings

View File

@@ -32,7 +32,7 @@ func (e Endpoint) Equals(other Endpoint) bool {
return e.Url == other.Url && e.Auth.Equals(other.Auth) return e.Url == other.Url && e.Auth.Equals(other.Auth)
} }
// HttpClient creates a http client object dependant // HttpClient creates a http client object dependent
// on the properties of the network endpoint. // on the properties of the network endpoint.
func (e Endpoint) HttpClient() *http.Client { func (e Endpoint) HttpClient() *http.Client {
if e.Auth.Method != authorization.Bearer { if e.Auth.Method != authorization.Bearer {