Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EstimateFunc ¶
EstimateFunc returns the time estimate required for the block to be issued by the rate setter.
type IssuePayloadFunc ¶
type IssuePayloadFunc = func(payload payload.Payload, parentsCount ...int) (*tangleold.Block, error)
IssuePayloadFunc is a function which issues a payload.
type Spammer ¶
type Spammer struct {
// contains filtered or unexported fields
}
Spammer spams blocks with a static data payload.
func New ¶
func New(issuePayloadFunc IssuePayloadFunc, log *logger.Logger, estimateFunc EstimateFunc) *Spammer
New creates a new spammer.
Click to show internal directories.
Click to hide internal directories.