node

package
v1.2.0-pre-fork6-fix4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGlobNode

func SetGlobNode(node *Node) bool

Types

type Master

type Master struct {
	PrivateKey  *ecdsa.PrivateKey
	PublicKey   *ecdsa.PublicKey
	Beneficiary *meter.Address
	// contains filtered or unexported fields
}

func (*Master) Address

func (m *Master) Address() meter.Address

func (*Master) GetPublicBytes

func (m *Master) GetPublicBytes() []byte

func (*Master) SetPublicBytes

func (m *Master) SetPublicBytes(publicBytes []byte)

type Node

type Node struct {
	// contains filtered or unexported fields
}
var (
	GlobNodeInst *Node
)

func GetGlobNode

func GetGlobNode() *Node

func New

func New(
	master *Master,
	chain *chain.Chain,
	stateCreator *state.Creator,
	logDB *logdb.LogDB,
	txPool *txpool.TxPool,
	txStashPath string,
	comm *comm.Communicator,
	cons *consensus.ConsensusReactor,
	script *script.ScriptEngine,
) *Node

func (*Node) Run

func (n *Node) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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