Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StakeAutomaton ¶
type StakeAutomaton struct {
// contains filtered or unexported fields
}
StakeAutomaton is a process that keeps note of when certain consensus transactions expire, and makes sure the node remains within the bidlist/committee, when those transactions are close to expiring.
func New ¶
New creates a new instance of StakeAutomaton that is used to automate the resending of stakes and alleviate the burden for a user to having to manually manage restaking.
func (*StakeAutomaton) AutomateStakes ¶
func (m *StakeAutomaton) AutomateStakes(ctx context.Context, e *node.EmptyRequest) (*node.GenericResponse, error)
AutomateStakes will automate the sending of stakes.
func (*StakeAutomaton) Listen ¶
func (m *StakeAutomaton) Listen()
Listen to round updates and takes the proper decision Stake-wise.
Click to show internal directories.
Click to hide internal directories.