Documentation ¶
Index ¶
- type Challenger
- type DivergenceInfo
- type ExecutionImpl
- func (e *ExecutionImpl) Bisect(ctx context.Context, challenge *ethbridge.Challenge, ...) error
- func (e *ExecutionImpl) FindFirstDivergence(lookup core.ArbCoreLookup, assertion *core.Assertion, offsets []*big.Int, ...) (DivergenceInfo, error)
- func (e *ExecutionImpl) GetCuts(lookup core.ArbCoreLookup, assertion *core.Assertion, offsets []*big.Int) ([]core.Cut, error)
- func (e *ExecutionImpl) OneStepProof(ctx context.Context, challenge *ethbridge.Challenge, lookup core.ArbCoreLookup, ...) error
- func (e *ExecutionImpl) ProveContinuedExecution(ctx context.Context, challenge *ethbridge.Challenge, lookup core.ArbCoreLookup, ...) error
- func (e *ExecutionImpl) SegmentTarget() int
- type FaultConfig
- type FaultyCore
- func (c FaultyCore) AdvanceExecutionCursor(executionCursor core.ExecutionCursor, maxGas *big.Int, goOverGas bool) error
- func (c FaultyCore) GetExecutionCursor(totalGasUsed *big.Int) (core.ExecutionCursor, error)
- func (c FaultyCore) TakeMachine(executionCursor core.ExecutionCursor) (machine.Machine, error)
- type FaultyExecutionCursor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Challenger ¶
type Challenger struct {
// contains filtered or unexported fields
}
func NewChallenger ¶
func NewChallenger(challenge *ethbridge.Challenge, lookup core.ArbCoreLookup, challengedNode *core.NodeInfo, stakerAddress common.Address) *Challenger
func (*Challenger) ChallengeAddress ¶
func (c *Challenger) ChallengeAddress() common.Address
func (*Challenger) HandleConflict ¶
func (c *Challenger) HandleConflict(ctx context.Context) error
type DivergenceInfo ¶
type ExecutionImpl ¶
type ExecutionImpl struct { }
func (*ExecutionImpl) FindFirstDivergence ¶
func (e *ExecutionImpl) FindFirstDivergence(lookup core.ArbCoreLookup, assertion *core.Assertion, offsets []*big.Int, cuts []core.Cut) (DivergenceInfo, error)
func (*ExecutionImpl) GetCuts ¶
func (e *ExecutionImpl) GetCuts(lookup core.ArbCoreLookup, assertion *core.Assertion, offsets []*big.Int) ([]core.Cut, error)
func (*ExecutionImpl) OneStepProof ¶
func (e *ExecutionImpl) OneStepProof( ctx context.Context, challenge *ethbridge.Challenge, lookup core.ArbCoreLookup, assertion *core.Assertion, prevBisection *core.Bisection, segmentToChallenge int, challengedSegment *core.ChallengeSegment, ) error
func (*ExecutionImpl) ProveContinuedExecution ¶
func (e *ExecutionImpl) ProveContinuedExecution( ctx context.Context, challenge *ethbridge.Challenge, lookup core.ArbCoreLookup, assertion *core.Assertion, prevBisection *core.Bisection, segmentToChallenge int, challengedSegment *core.ChallengeSegment, ) error
func (*ExecutionImpl) SegmentTarget ¶
func (e *ExecutionImpl) SegmentTarget() int
type FaultConfig ¶
type FaultyCore ¶
func NewFaultyCore ¶
func NewFaultyCore(core core.ArbCore, config FaultConfig) FaultyCore
func (FaultyCore) AdvanceExecutionCursor ¶
func (c FaultyCore) AdvanceExecutionCursor(executionCursor core.ExecutionCursor, maxGas *big.Int, goOverGas bool) error
func (FaultyCore) GetExecutionCursor ¶
func (c FaultyCore) GetExecutionCursor(totalGasUsed *big.Int) (core.ExecutionCursor, error)
func (FaultyCore) TakeMachine ¶
func (c FaultyCore) TakeMachine(executionCursor core.ExecutionCursor) (machine.Machine, error)
type FaultyExecutionCursor ¶
type FaultyExecutionCursor struct { core.ExecutionCursor // contains filtered or unexported fields }
func (FaultyExecutionCursor) Clone ¶
func (e FaultyExecutionCursor) Clone() core.ExecutionCursor
func (FaultyExecutionCursor) MachineHash ¶
func (e FaultyExecutionCursor) MachineHash() (common.Hash, error)
func (FaultyExecutionCursor) TotalGasConsumed ¶
func (e FaultyExecutionCursor) TotalGasConsumed() *big.Int
func (FaultyExecutionCursor) TotalMessagesRead ¶
func (e FaultyExecutionCursor) TotalMessagesRead() *big.Int
Click to show internal directories.
Click to hide internal directories.