Co-authored-by: Nishant Das <nishdas93@gmail.com>
This commit is contained in:
Siyuan Han
2022-08-12 17:27:24 +08:00
committed by GitHub
parent 9c6efe4abd
commit f3997647ac
2 changed files with 3 additions and 3 deletions

View File

@@ -185,7 +185,7 @@ func ProcessSlashings(state state.BeaconState, slashingMultiplier uint64) (state
} }
} }
// a callback is used here to apply the following actions to all validators // a callback is used here to apply the following actions to all validators
// below equally. // below equally.
increment := params.BeaconConfig().EffectiveBalanceIncrement increment := params.BeaconConfig().EffectiveBalanceIncrement
minSlashing := math.Min(totalSlashing*slashingMultiplier, totalBalance) minSlashing := math.Min(totalSlashing*slashingMultiplier, totalBalance)

View File

@@ -23,7 +23,7 @@ func (m MetadataV0) SequenceNumber() uint64 {
return m.md.SeqNumber return m.md.SeqNumber
} }
// AttnetsBitfield retruns the bitfield stored in the metadata. // AttnetsBitfield returns the bitfield stored in the metadata.
func (m MetadataV0) AttnetsBitfield() bitfield.Bitvector64 { func (m MetadataV0) AttnetsBitfield() bitfield.Bitvector64 {
return m.md.Attnets return m.md.Attnets
} }
@@ -98,7 +98,7 @@ func (m MetadataV1) SequenceNumber() uint64 {
return m.md.SeqNumber return m.md.SeqNumber
} }
// AttnetsBitfield retruns the bitfield stored in the metadata. // AttnetsBitfield returns the bitfield stored in the metadata.
func (m MetadataV1) AttnetsBitfield() bitfield.Bitvector64 { func (m MetadataV1) AttnetsBitfield() bitfield.Bitvector64 {
return m.md.Attnets return m.md.Attnets
} }