aggregator

package
v0.0.0-...-c1b05a4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {
	// contains filtered or unexported fields
}

func NewAggregator

func NewAggregator(
	aggregatorDbDir string,
	validatorDbDir string,
	mainchainKeystore string,
	sidechainKeystore string,
	relayerGrpcPort int,
	fraudTransfer bool,
	validatorMode bool) (*Aggregator, error)

func (*Aggregator) Start

func (a *Aggregator) Start()

type BlockSubmitter

type BlockSubmitter struct {
	// contains filtered or unexported fields
}

func NewBlockSubmitter

func NewBlockSubmitter(
	mainchainClient *ethclient.Client,
	mainchainAuth *bind.TransactOpts,
	mainchainAuthPrivatekey *ecdsa.PrivateKey,
	sidechainClient *ethclient.Client,
	sidechainAuth *bind.TransactOpts,
	sidechainAuthPrivateKey *ecdsa.PrivateKey,
	aggregatorDb db.DB,
	serializer *types.Serializer,
	rollupChain *mainchain.RollupChain,
	validatorRegistry *mainchain.ValidatorRegistry,
	blockCommittee *sidechain.BlockCommittee,
) *BlockSubmitter

func (*BlockSubmitter) Start

func (bs *BlockSubmitter) Start()

type TransactionGenerator

type TransactionGenerator struct {
	// contains filtered or unexported fields
}

func NewTransactionGenerator

func NewTransactionGenerator(
	aggregatorDb db.DB,
	validatorDb db.DB,
	mainchainClient *ethclient.Client,
	rollupChain *mainchain.RollupChain,
) *TransactionGenerator

func (*TransactionGenerator) Start

func (tg *TransactionGenerator) Start()

Jump to

Keyboard shortcuts

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