Documentation ¶
Index ¶
- Variables
- type AppState
- func (s *AppState) Commit(block *types.Block) error
- func (s *AppState) CommitAt(height uint64) 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.IdentityStateDiff
- 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)
- func (s *AppState) UseDefaultTree() error
- func (s *AppState) UseSyncTree() error
- 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) NewFlipsKey(author common.Address)
- 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) ForCheckWithOverwrite ¶ added in v0.19.3
loads appState
func (*AppState) Initialize ¶
func (*AppState) Precommit ¶
func (s *AppState) Precommit() *state.IdentityStateDiff
func (*AppState) SetPredefinedState ¶
func (s *AppState) SetPredefinedState(predefinedState *models.ProtoPredefinedState)
func (*AppState) UseDefaultTree ¶
func (*AppState) UseSyncTree ¶
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) NewFlipsKey ¶
func (m *EvidenceMap) NewFlipsKey(author common.Address)
func (*EvidenceMap) SetShortSessionTime ¶
func (m *EvidenceMap) SetShortSessionTime(timestamp time.Time, shortSessionDuration time.Duration)
Click to show internal directories.
Click to hide internal directories.