stakeautomaton

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 13 Imported by: 0

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

func New(eventBroker eventbus.Broker, rpcBus *rpcbus.RPCBus, srv *grpc.Server) *StakeAutomaton

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL