Documentation ¶
Index ¶
- type SplitTraceProvider
- func (s *SplitTraceProvider) AbsolutePreState(ctx context.Context) (preimage []byte, err error)
- func (s *SplitTraceProvider) AbsolutePreStateCommitment(ctx context.Context) (hash common.Hash, err error)
- func (s *SplitTraceProvider) Get(ctx context.Context, pos types.Position) (common.Hash, error)
- func (s *SplitTraceProvider) GetStepData(ctx context.Context, pos types.Position) (prestate []byte, proofData []byte, preimageData *types.PreimageOracleData, ...)
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.