Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStakingToPeer ¶
func NewStakingToPeer(args ArgStakingToPeer) (*stakingToPeer, error)
NewStakingToPeer creates the component which moves from staking sc state to peer state
Types ¶
type ArgStakingToPeer ¶
type ArgStakingToPeer struct { PubkeyConv core.PubkeyConverter Hasher hashing.Hasher Marshalizer marshal.Marshalizer PeerState state.AccountsAdapter BaseState state.AccountsAdapter ArgParser process.ArgumentsParser CurrTxs dataRetriever.TransactionCacher RatingsData process.RatingsInfoHandler StakeEnableEpoch uint32 ValidatorToDelegationEnableEpoch uint32 EpochNotifier process.EpochNotifier }
ArgStakingToPeer is struct that contain all components that are needed to create a new stakingToPeer object
Click to show internal directories.
Click to hide internal directories.