Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type POW ¶
type POW struct { TxProcessor *executer.TxProcessor // contains filtered or unexported fields }
func NewPOW ¶
func NewPOW(difficulty int, txProcessor *executer.TxProcessor) *POW
NewPOW creates a new proof of work consensus.
func (*POW) GetDifficulty ¶
GetDifficulty returns the difficulty of the proof of work consensus.
func (*POW) SetDifficulty ¶
SetDifficulty sets the difficulty of the proof of work consensus.
Click to show internal directories.
Click to hide internal directories.