mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user