scToProtocol

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

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
	EnableEpochsHandler common.EnableEpochsHandler
}

ArgStakingToPeer is struct that contain all components that are needed to create a new stakingToPeer object

Jump to

Keyboard shortcuts

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