Documentation
¶
Index ¶
- type EvilMachine
- func (e EvilMachine) Clone() machine.Machine
- func (e EvilMachine) ExecuteAssertion(maxSteps uint64, inboxMessages []inbox.InboxMessage, maxWallTime time.Duration) (*protocol.ExecutionAssertion, uint64)
- func (e EvilMachine) ExecuteSideloadedAssertion(maxSteps uint64, inboxMessages []inbox.InboxMessage, ...) (*protocol.ExecutionAssertion, uint64)
- func (e EvilMachine) Hash() common.Hash
- type EvilRollupCheckpointer
- func (e EvilRollupCheckpointer) AsyncSaveCheckpoint(blockId *common.BlockId, contents []byte, cpCtx *ckptcontext.CheckpointContext) <-chan error
- func (e EvilRollupCheckpointer) GetInitialMachine(vc machine.ValueCache) (machine.Machine, error)
- func (e EvilRollupCheckpointer) GetMachine(h common.Hash) (machine.Machine, error)
- func (e EvilRollupCheckpointer) GetValue(h common.Hash) (value.Value, error)
- func (e EvilRollupCheckpointer) HasCheckpointedState() bool
- func (e *EvilRollupCheckpointer) Initialize(arbitrumCodeFilePath string) error
- func (e *EvilRollupCheckpointer) Initialized() bool
- func (e EvilRollupCheckpointer) MaxReorgHeight() *big.Int
- func (e EvilRollupCheckpointer) RestoreLatestState(ctx context.Context, clnt arbbridge.ChainTimeGetter, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvilMachine ¶
evil machine is like a regular machine, except it returns a wrong hash w/ probability 1/8, repeatably this is useful for testing challenge functionality
func NewEvilMachine ¶
func NewEvilMachine(machine *cmachine.Machine) *EvilMachine
func (EvilMachine) Clone ¶
func (e EvilMachine) Clone() machine.Machine
func (EvilMachine) ExecuteAssertion ¶
func (e EvilMachine) ExecuteAssertion( maxSteps uint64, inboxMessages []inbox.InboxMessage, maxWallTime time.Duration, ) (*protocol.ExecutionAssertion, uint64)
func (EvilMachine) ExecuteSideloadedAssertion ¶
func (e EvilMachine) ExecuteSideloadedAssertion( maxSteps uint64, inboxMessages []inbox.InboxMessage, sideloadValue *value.TupleValue, maxWallTime time.Duration, ) (*protocol.ExecutionAssertion, uint64)
func (EvilMachine) Hash ¶
func (e EvilMachine) Hash() common.Hash
type EvilRollupCheckpointer ¶
type EvilRollupCheckpointer struct {
// contains filtered or unexported fields
}
func (EvilRollupCheckpointer) AsyncSaveCheckpoint ¶
func (e EvilRollupCheckpointer) AsyncSaveCheckpoint(blockId *common.BlockId, contents []byte, cpCtx *ckptcontext.CheckpointContext) <-chan error
func (EvilRollupCheckpointer) GetInitialMachine ¶
func (e EvilRollupCheckpointer) GetInitialMachine(vc machine.ValueCache) (machine.Machine, error)
func (EvilRollupCheckpointer) GetMachine ¶
func (EvilRollupCheckpointer) HasCheckpointedState ¶
func (e EvilRollupCheckpointer) HasCheckpointedState() bool
func (*EvilRollupCheckpointer) Initialize ¶
func (e *EvilRollupCheckpointer) Initialize(arbitrumCodeFilePath string) error
func (*EvilRollupCheckpointer) Initialized ¶
func (e *EvilRollupCheckpointer) Initialized() bool
func (EvilRollupCheckpointer) MaxReorgHeight ¶
func (e EvilRollupCheckpointer) MaxReorgHeight() *big.Int
func (EvilRollupCheckpointer) RestoreLatestState ¶
func (e EvilRollupCheckpointer) RestoreLatestState( ctx context.Context, clnt arbbridge.ChainTimeGetter, unmarshalFunc func([]byte, ckptcontext.RestoreContext, *common.BlockId) error, ) error
Click to show internal directories.
Click to hide internal directories.