Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CfgPOWDifficulty defines the config flag of the PoW difficulty. CfgPOWDifficulty = "pow.difficulty" // CfgPOWNumThreads defines the config flag of the number of threads used to do the PoW. CfgPOWNumThreads = "pow.numThreads" // CfgPOWTimeout defines the config flag for the PoW timeout. CfgPOWTimeout = "pow.timeout" )
View Source
const PluginName = "PoW"
PluginName is the name of the PoW plugin.
Variables ¶
View Source
var ( // ErrMessageTooSmall is returned when the message is smaller than the 8-byte nonce. ErrMessageTooSmall = errors.New("message too small") )
Functions ¶
Types ¶
type PowDoneEvent ¶
PowDoneEvent is used to pass information through a PowDone event.
Click to show internal directories.
Click to hide internal directories.