Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Slot ¶
type Slot struct {
// contains filtered or unexported fields
}
Slot is a DPoS slot implmentation.
func NewFromUnixNano ¶
NewFromUnixNano returns a Slot corresponding to a UNIX time value (ns).
func (*Slot) GetBpTimeout ¶
GetBpTimeout returns the time available for block production.
func (*Slot) IsValidNow ¶
IsValidNow reports whether s is still valid at the time when it's called.
func (*Slot) NextBpIndex ¶ added in v0.8.1
NextBpIndex returns BP index for s.nextIndex.
func (*Slot) RemainingTimeMS ¶
RemainingTimeMS returns the remaining duration until the next block generation time.
Click to show internal directories.
Click to hide internal directories.