Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockState ¶
type BlockState struct { LastBlock BlockCtx FinalizedStateRoot hash.Hash EpochGas uint64 EpochCheaters forest.Cheaters CheatersWritten uint32 ValidatorStates []ValidatorBlockState NextValidatorProfiles ValidatorProfiles DirtyRules *ncogearthchain.Rules `rlp:"nil"` // nil means that there's no changes compared to epoch rules AdvanceEpochs idx.Epoch }
func (BlockState) Copy ¶
func (bs BlockState) Copy() BlockState
func (*BlockState) GetValidatorState ¶
func (bs *BlockState) GetValidatorState(id idx.ValidatorID, validators *pos.Validators) *ValidatorBlockState
func (BlockState) Hash ¶
func (bs BlockState) Hash() hash.Hash
type EpochState ¶
type EpochState EpochStateV1
func (EpochState) Copy ¶
func (es EpochState) Copy() EpochState
func (EpochState) Duration ¶
func (es EpochState) Duration() inter.Timestamp
func (*EpochState) GetValidatorState ¶
func (es *EpochState) GetValidatorState(id idx.ValidatorID, validators *pos.Validators) *ValidatorEpochState
func (EpochState) Hash ¶
func (es EpochState) Hash() hash.Hash
type EpochStateV0 ¶
type EpochStateV0 struct { Epoch idx.Epoch EpochStart inter.Timestamp PrevEpochStart inter.Timestamp EpochStateRoot hash.Hash Validators *pos.Validators ValidatorStates []ValidatorEpochStateV0 ValidatorProfiles ValidatorProfiles Rules ncogearthchain.Rules }
type EpochStateV1 ¶
type EpochStateV1 struct { Epoch idx.Epoch EpochStart inter.Timestamp PrevEpochStart inter.Timestamp EpochStateRoot hash.Hash Validators *pos.Validators ValidatorStates []ValidatorEpochState ValidatorProfiles ValidatorProfiles Rules ncogearthchain.Rules }
type ValidatorBlockState ¶
type ValidatorEpochState ¶
type ValidatorEpochStateV0 ¶
type ValidatorProfiles ¶
type ValidatorProfiles map[idx.ValidatorID]drivertype.Validator
func (ValidatorProfiles) Copy ¶
func (vv ValidatorProfiles) Copy() ValidatorProfiles
func (*ValidatorProfiles) DecodeRLP ¶
func (vv *ValidatorProfiles) DecodeRLP(s *rlp.Stream) error
DecodeRLP is for RLP deserialization.
func (ValidatorProfiles) EncodeRLP ¶
func (vv ValidatorProfiles) EncodeRLP(w io.Writer) error
EncodeRLP is for RLP serialization.
func (ValidatorProfiles) SortedArray ¶
func (vv ValidatorProfiles) SortedArray() []drivertype.ValidatorAndID
Click to show internal directories.
Click to hide internal directories.