Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Difficulty ¶
type Difficulty int
Difficulty represent a mining difficulty.
var ( // Current represent the actual mining difficulty. Current Difficulty = 1 )
func (*Difficulty) Int ¶
func (d *Difficulty) Int() int
func (*Difficulty) Save ¶
func (d *Difficulty) Save(difficulty int)
func (*Difficulty) Update ¶
func (d *Difficulty) Update(nbTries uint)
Update the difficulty according to the number of tests that were carried out before finding the last block.
Click to show internal directories.
Click to hide internal directories.