execution

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadBlock

type BadBlock struct {
	// The hash of the block
	Hash string `json:"hash"`
	// Block is the actual bad block
	Block json.RawMessage `json:"block"`
	// RLP is the RLP encoded block
	RLP string `json:"rlp"`
}

func (*BadBlock) ParseBlockHeader

func (b *BadBlock) ParseBlockHeader() (*types.Header, error)

type BadBlocksResponse

type BadBlocksResponse map[string]BadBlock

type Config

type Config struct {
	// The address of the Execution node to connect to
	NodeAddress         string `yaml:"nodeAddress"`
	TraceDisableMemory  *bool  `yaml:"traceDisableMemory" default:"false"`
	TraceDisableStack   *bool  `yaml:"traceDisableStack" default:"true"`
	TraceDisableStorage *bool  `yaml:"traceDisableStorage" default:"false"`
}

func (*Config) GetTraceDisableMemory added in v0.0.12

func (c *Config) GetTraceDisableMemory() bool

func (*Config) GetTraceDisableStack added in v0.0.12

func (c *Config) GetTraceDisableStack() bool

func (*Config) GetTraceDisableStorage added in v0.0.12

func (c *Config) GetTraceDisableStorage() bool

func (*Config) Validate

func (c *Config) Validate() error

type Node

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

func NewNode

func NewNode(log logrus.FieldLogger, conf *Config) *Node

func (*Node) GetBadBlocks

func (n *Node) GetBadBlocks(ctx context.Context) (*BadBlocksResponse, error)

func (*Node) GetRawDebugBlockTrace

func (n *Node) GetRawDebugBlockTrace(ctx context.Context, hash, client string) (*[]byte, error)

func (*Node) Metadata

func (n *Node) Metadata() *services.MetadataService

func (*Node) OnReady

func (n *Node) OnReady(_ context.Context, callback func(ctx context.Context) error)

func (*Node) Start

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

func (*Node) Stop

func (n *Node) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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