Documentation ¶
Overview ¶
Package layerpatrol keeps parties informed about the general progress of each layer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LayerPatrol ¶
type LayerPatrol struct {
// contains filtered or unexported fields
}
LayerPatrol keeps progress of each layer.
func (*LayerPatrol) CompleteHare ¶
func (lp *LayerPatrol) CompleteHare(layerID types.LayerID)
CompleteHare is called by hare instance that completed this layer.
func (*LayerPatrol) IsHareInCharge ¶
func (lp *LayerPatrol) IsHareInCharge(layerID types.LayerID) bool
IsHareInCharge returns true if the hare is set to handle the validation of the specified layer.
func (*LayerPatrol) SetHareInCharge ¶
func (lp *LayerPatrol) SetHareInCharge(layerID types.LayerID)
SetHareInCharge sets the layer's validation to be triggered by hare (as opposed to syncer).
Click to show internal directories.
Click to hide internal directories.