Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DifficultyAdjustment ¶ added in v0.6.0
type DifficultyMetrics ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func GetManager ¶
func GetManager() *Manager
type Miner ¶
type Miner struct { Config *config.Config Logger *logging.Logger // contains filtered or unexported fields }
type TargetState ¶ added in v0.3.0
type TargetStateV1 ¶ added in v0.3.0
type TargetStateV1 struct { Nonce [16]byte BlockNumber int64 CurrentHash []byte LeadingZeros int64 DifficultyNumber int64 EpochTime int64 }
func (*TargetStateV1) GetNonce ¶ added in v0.3.0
func (t *TargetStateV1) GetNonce() [16]byte
func (*TargetStateV1) MarshalCBOR ¶ added in v0.3.0
func (state *TargetStateV1) MarshalCBOR() ([]byte, error)
func (*TargetStateV1) SetNonce ¶ added in v0.3.0
func (t *TargetStateV1) SetNonce(nonce [16]byte)
func (*TargetStateV1) ToBytes ¶ added in v0.3.0
func (state *TargetStateV1) ToBytes() ([]byte, error)
type TargetStateV2 ¶ added in v0.5.0
type TargetStateV2 struct { Nonce [16]byte MinerCredHash []byte EpochTime int64 BlockNumber int64 CurrentHash []byte LeadingZeros int64 DifficultyNumber int64 }
func (*TargetStateV2) GetNonce ¶ added in v0.5.0
func (t *TargetStateV2) GetNonce() [16]byte
func (*TargetStateV2) MarshalCBOR ¶ added in v0.5.0
func (state *TargetStateV2) MarshalCBOR() ([]byte, error)
func (*TargetStateV2) SetNonce ¶ added in v0.5.0
func (t *TargetStateV2) SetNonce(nonce [16]byte)
func (*TargetStateV2) ToBytes ¶ added in v0.5.0
func (state *TargetStateV2) ToBytes() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.