Documentation ¶
Index ¶
- Variables
- type AppState
- func (s *AppState) Commit(block *types.Block) error
- func (s *AppState) CommitAt(height uint64) error
- func (s *AppState) CommitTrees(block *types.Block, diff *state.IdentityStateDiff) error
- func (s *AppState) FinalizePrecommit(block *types.Block) error
- func (s *AppState) ForCheck(height uint64) (*AppState, error)
- func (s *AppState) ForCheckWithOverwrite(height uint64) (*AppState, error)
- func (s *AppState) Initialize(height uint64) error
- func (s *AppState) Precommit() ([]*state.StateTreeDiff, *state.IdentityStateDiff)
- func (s *AppState) ProvideIdentityUpdateHook(hook state.IdentityUpdateHook)
- func (s *AppState) Readonly(height uint64) (*AppState, error)
- func (s *AppState) Reset()
- func (s *AppState) ResetTo(height uint64) error
- func (s *AppState) SetPredefinedState(predefinedState *models.ProtoPredefinedState)
- type EvidenceMap
- func (m *EvidenceMap) CalculateApprovedCandidates(candidates []common.Address, maps [][]byte) []common.Address
- func (m *EvidenceMap) CalculateBitmap(candidates []common.Address, additional []common.Address, ...) *common.Bitmap
- func (m *EvidenceMap) Clear()
- func (m *EvidenceMap) ContainsAnswer(candidate common.Address) bool
- func (m *EvidenceMap) ContainsKey(candidate common.Address) bool
- func (m *EvidenceMap) GetShortSessionBeginningTime() time.Time
- func (m *EvidenceMap) GetShortSessionEndingTime() time.Time
- func (m *EvidenceMap) IsCompleted() bool
- func (m *EvidenceMap) NewFlipKeyPackage(author common.Address)
- func (m *EvidenceMap) NewFlipsKey(author common.Address)
- func (m *EvidenceMap) SetShortSessionStartTime(timestamp time.Time)
- func (m *EvidenceMap) SetShortSessionTime(timestamp time.Time, shortSessionDuration time.Duration)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ShortSessionFlipKeyDeadline = time.Second * 25
)
Functions ¶
This section is empty.
Types ¶
type AppState ¶
type AppState struct { ValidatorsCache *validators.ValidatorsCache State *state.StateDB NonceCache *state.NonceCache IdentityState *state.IdentityStateDB EvidenceMap *EvidenceMap // contains filtered or unexported fields }
func (*AppState) CommitTrees ¶ added in v0.26.3
func (*AppState) FinalizePrecommit ¶ added in v0.26.6
func (*AppState) ForCheckWithOverwrite ¶ added in v0.19.3
loads appState
func (*AppState) Initialize ¶
func (*AppState) Precommit ¶
func (s *AppState) Precommit() ([]*state.StateTreeDiff, *state.IdentityStateDiff)
func (*AppState) ProvideIdentityUpdateHook ¶ added in v0.30.0
func (s *AppState) ProvideIdentityUpdateHook(hook state.IdentityUpdateHook)
func (*AppState) SetPredefinedState ¶
func (s *AppState) SetPredefinedState(predefinedState *models.ProtoPredefinedState)
type EvidenceMap ¶
type EvidenceMap struct {
// contains filtered or unexported fields
}
func NewEvidenceMap ¶
func NewEvidenceMap(bus eventbus.Bus) *EvidenceMap
func (*EvidenceMap) CalculateApprovedCandidates ¶
func (*EvidenceMap) CalculateBitmap ¶
func (*EvidenceMap) Clear ¶
func (m *EvidenceMap) Clear()
func (*EvidenceMap) ContainsAnswer ¶
func (m *EvidenceMap) ContainsAnswer(candidate common.Address) bool
func (*EvidenceMap) ContainsKey ¶
func (m *EvidenceMap) ContainsKey(candidate common.Address) bool
func (*EvidenceMap) GetShortSessionBeginningTime ¶
func (m *EvidenceMap) GetShortSessionBeginningTime() time.Time
func (*EvidenceMap) GetShortSessionEndingTime ¶
func (m *EvidenceMap) GetShortSessionEndingTime() time.Time
func (*EvidenceMap) IsCompleted ¶
func (m *EvidenceMap) IsCompleted() bool
func (*EvidenceMap) NewFlipKeyPackage ¶ added in v0.27.3
func (m *EvidenceMap) NewFlipKeyPackage(author common.Address)
func (*EvidenceMap) NewFlipsKey ¶
func (m *EvidenceMap) NewFlipsKey(author common.Address)
func (*EvidenceMap) SetShortSessionStartTime ¶ added in v0.27.3
func (m *EvidenceMap) SetShortSessionStartTime(timestamp time.Time)
func (*EvidenceMap) SetShortSessionTime ¶
func (m *EvidenceMap) SetShortSessionTime(timestamp time.Time, shortSessionDuration time.Duration)
Click to show internal directories.
Click to hide internal directories.