scToProtocol

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 15 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
	StakeEnableEpoch uint32
	EpochNotifier    process.EpochNotifier
}

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