node

package
v0.0.0-...-25dd0f4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaikoNode

type TaikoNode struct {
	// Logging interface for all the events that happen in the node
	Logging utils.Logging
	// Index of the node in the network/testnet
	Index int
	// Clients that comprise the node
	L1ExecutionClient          *execution.ExecutionClient
	L1BeaconChainClient        *beacon.BeaconClient
	L1ValidatorClient          *validator.ValidatorClient
	L2ExecutionClient          *execution.ExecutionClient
	L1L2ProtocolDeployerClient *protocol_deployer.ProtocolDeployerClient
	L2DriverClient             *driver.DriverClient
	L2ProposerClient           *proposer.ProposerClient
	L2ProverClient             *prover.ProverClient
}

A node bundles together: - Running L1/L2 Execution clients - Running L1 Beacon Chain client - Running L1 Validator client - Running Protocol Deployer - Running Driver client - Running Proposer client - Running Prover client

func (*TaikoNode) ClientNames

func (n *TaikoNode) ClientNames() string

func (*TaikoNode) IsRunning

func (n *TaikoNode) IsRunning() bool

func (*TaikoNode) Logf

func (n *TaikoNode) Logf(format string, values ...interface{})

func (*TaikoNode) Shutdown

func (n *TaikoNode) Shutdown() error

func (*TaikoNode) Start

func (n *TaikoNode) Start() error

Starts all clients included in the bundle

type TaikoNodes

type TaikoNodes []*TaikoNode

Node cluster operations

func (TaikoNodes) L1BeaconChainClients

func (all TaikoNodes) L1BeaconChainClients() beacon.BeaconClients

Return all L1 beacon chain clients, even the ones not currently running

func (TaikoNodes) L1ExecutionClients

func (all TaikoNodes) L1ExecutionClients() execution.ExecutionClients

Return all L1 execution clients, even the ones not currently running

func (TaikoNodes) L1L2ProtocolDeployerClients

func (all TaikoNodes) L1L2ProtocolDeployerClients() protocol_deployer.ProtocolDeployerClients

Return all L1L2 protocol deployer clients, even the ones not currently running

func (TaikoNodes) L1ValidatorClients

func (all TaikoNodes) L1ValidatorClients() validator.ValidatorClients

Return all L1 validator clients, even the ones not currently running

func (TaikoNodes) L2DriverClients

func (all TaikoNodes) L2DriverClients() driver.DriverClients

Return all L2 driver clients, even the ones not currently running

func (TaikoNodes) L2ExecutionClients

func (all TaikoNodes) L2ExecutionClients() execution.ExecutionClients

Return all L2 execution clients, even the ones not currently running

func (TaikoNodes) L2ProposerClients

func (all TaikoNodes) L2ProposerClients() proposer.ProposerClients

Return all L2 proposer clients, even the ones not currently running

func (TaikoNodes) L2ProverClients

func (all TaikoNodes) L2ProverClients() prover.ProverClients

Return all L2 prover clients, even the ones not currently running

func (TaikoNodes) Running

func (all TaikoNodes) Running() TaikoNodes

Return subset of nodes that are currently running

Jump to

Keyboard shortcuts

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