scToProtocol

package
v1.0.94 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: GPL-3.0 Imports: 14 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 {
	AdrConv          state.AddressConverter
	Hasher           hashing.Hasher
	ProtoMarshalizer marshal.Marshalizer
	VmMarshalizer    marshal.Marshalizer
	PeerState        state.AccountsAdapter
	BaseState        state.AccountsAdapter

	ArgParser process.ArgumentsParser
	CurrTxs   dataRetriever.TransactionCacher
	ScQuery   external.SCQueryService
}

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