Documentation ¶
Index ¶
Constants ¶
View Source
const ( Ping = iota + 1 AskPeers MineMicro PersistComplete )
Variables ¶
This section is empty.
Functions ¶
func SendAsyncTask ¶ added in v0.8.1
SendAsyncTask sends task into channel with overflow check.
Types ¶
type AskPeersTask ¶
type AskPeersTask struct {
// contains filtered or unexported fields
}
func NewAskPeersTask ¶
func NewAskPeersTask(d time.Duration) AskPeersTask
func (AskPeersTask) Run ¶
func (a AskPeersTask) Run(ctx context.Context, output chan AsyncTask) error
func (AskPeersTask) Type ¶
func (a AskPeersTask) Type() int
type MineMicroTask ¶
type MineMicroTask struct { MineMicroTaskData MineMicroTaskData // contains filtered or unexported fields }
func NewMineMicroTask ¶
func NewMineMicroTask(timeout time.Duration, block *proto.Block, limits proto.MiningLimits, keyPair proto.KeyPair, vrf []byte) MineMicroTask
func (MineMicroTask) Run ¶
func (a MineMicroTask) Run(ctx context.Context, output chan AsyncTask) error
func (MineMicroTask) Type ¶
func (MineMicroTask) Type() int
type MineMicroTaskData ¶
Click to show internal directories.
Click to hide internal directories.