split

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SplitTraceProvider

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

SplitTraceProvider is a types.TraceProvider implementation that routes requests to the correct internal trace provider based on the depth of the requested trace.

func NewTraceProvider

func NewTraceProvider(logger log.Logger, topProvider types.TraceProvider, bottomProvider types.TraceProvider, topDepth uint64) *SplitTraceProvider

NewTraceProvider creates a new SplitTraceProvider instance. The [topDepth] parameter specifies the depth at which the internal types.TraceProvider should be switched.

func (*SplitTraceProvider) AbsolutePreState

func (s *SplitTraceProvider) AbsolutePreState(ctx context.Context) (preimage []byte, err error)

AbsolutePreState routes the AbsolutePreState request to the lowest internal types.TraceProvider.

func (*SplitTraceProvider) AbsolutePreStateCommitment

func (s *SplitTraceProvider) AbsolutePreStateCommitment(ctx context.Context) (hash common.Hash, err error)

AbsolutePreStateCommitment returns the absolute prestate from the lowest internal types.TraceProvider

func (*SplitTraceProvider) Get

Get routes the Get request to the internal types.TraceProvider that that serves the trace index at the depth.

func (*SplitTraceProvider) GetStepData

func (s *SplitTraceProvider) GetStepData(ctx context.Context, pos types.Position) (prestate []byte, proofData []byte, preimageData *types.PreimageOracleData, err error)

GetStepData routes the GetStepData request to the lowest internal types.TraceProvider.

Jump to

Keyboard shortcuts

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