Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Target block time of 20 minutes (middle of 10-30 range) TargetBlockTime = 1200 // seconds // Adjustment interval of 12 blocks (~4 hours with 20min blocks) AdjustmentInterval = 12 // Limit difficulty change to 25% per adjustment MaxAdjustment = 1.25 MinAdjustment = 0.75 )
View Source
const (
// Maximum target (minimum difficulty)
MaxTarget = "0x00000fffff000000000000000000000000000000000000000000000000000000"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adjuster ¶
type Adjuster struct {
// contains filtered or unexported fields
}
func NewAdjuster ¶
func NewAdjuster() *Adjuster
Click to show internal directories.
Click to hide internal directories.