Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶
func NewRingBuffer ¶
func NewRingBuffer(maxSize int64) *RingBuffer
func (*RingBuffer) Append ¶
func (rb *RingBuffer) Append(x int64)
func (*RingBuffer) Avg ¶
func (rb *RingBuffer) Avg() float64
func (*RingBuffer) Clear ¶
func (rb *RingBuffer) Clear()
func (*RingBuffer) Size ¶
func (rb *RingBuffer) Size() int64
type VarDiff ¶
type VarDiff struct { Options *config.VarDiffOptions BufferSize int64 MaxTargetTime float64 MinTargetTime float64 TimeBuffer *RingBuffer LastRtc int64 LastTimestamp int64 }
func NewVarDiff ¶
func NewVarDiff(options *config.VarDiffOptions) *VarDiff
func (*VarDiff) CalcNextDiff ¶
On SubmitEvent then client.EnqueueNextDifficulty(newDiff)
Click to show internal directories.
Click to hide internal directories.