Documentation
¶
Overview ¶
nolint
Index ¶
- Variables
- func ReadFinality[T BlockFinality[T]](db kv.RwDB) (uint64, libcommon.Hash, error)
- func ReadFutureMilestoneList(db kv.RwDB) ([]uint64, map[uint64]libcommon.Hash, error)
- func ReadLockField(db kv.RwDB) (bool, uint64, libcommon.Hash, map[string]struct{}, error)
- func WriteFutureMilestoneList(db kv.RwDB, order []uint64, list map[uint64]libcommon.Hash) error
- func WriteLastFinality[T BlockFinality[T]](db kv.RwDB, block uint64, hash libcommon.Hash) error
- func WriteLockField(db kv.RwDB, val bool, block uint64, hash libcommon.Hash, ...) error
- type BlockFinality
- type Checkpoint
- type Finality
- type FutureMilestoneField
- type LockField
- type Milestone
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyLastFinality = errors.New("empty response while getting last finality") ErrIncorrectFinality = errors.New("last checkpoint in the DB is incorrect") ErrIncorrectFinalityToStore = errors.New("failed to marshal the last finality struct") ErrDBNotResponding = errors.New("failed to store the last finality struct") ErrIncorrectLockFieldToStore = errors.New("failed to marshal the lockField struct ") ErrIncorrectLockField = errors.New("lock field in the DB is incorrect") ErrIncorrectFutureMilestoneFieldToStore = errors.New("failed to marshal the future milestone field struct ") ErrIncorrectFutureMilestoneField = errors.New("future milestone field in the DB is incorrect") )
Functions ¶
func ReadFinality ¶
func ReadFutureMilestoneList ¶
func ReadLockField ¶
func WriteLastFinality ¶
Types ¶
type BlockFinality ¶
type BlockFinality[T any] interface { // contains filtered or unexported methods }
type Checkpoint ¶
type Checkpoint struct {
Finality
}
type FutureMilestoneField ¶
Click to show internal directories.
Click to hide internal directories.