Documentation ¶
Index ¶
- func NewDefendingValidator(core *validatorConfig, assDef protocol.AssertionDefender, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func NewValidatorConfig(address common.Address, config *valmessage.VMConfiguration, ...) *validatorConfig
- type AttemptingAssertDefender
- func (c AttemptingAssertDefender) Clone() *validatorCore
- func (c AttemptingAssertDefender) DeliverMessagesToVM()
- func (c AttemptingAssertDefender) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c AttemptingAssertDefender) GetBalance() *protocol.BalanceTracker
- func (c AttemptingAssertDefender) GetConfig() *validatorConfig
- func (c AttemptingAssertDefender) GetCore() *validatorCore
- func (c AttemptingAssertDefender) GetInbox() *protocol.Inbox
- func (c AttemptingAssertDefender) GetMachine() *vm.Machine
- func (c AttemptingAssertDefender) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c AttemptingAssertDefender) SendMessageToVM(msg protocol.Message)
- func (bot AttemptingAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot AttemptingAssertDefender) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c AttemptingAssertDefender) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
- type AttemptingOffchainClosing
- func (c AttemptingOffchainClosing) Clone() *validatorCore
- func (c AttemptingOffchainClosing) DeliverMessagesToVM()
- func (c AttemptingOffchainClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c AttemptingOffchainClosing) GetBalance() *protocol.BalanceTracker
- func (c AttemptingOffchainClosing) GetConfig() *validatorConfig
- func (c AttemptingOffchainClosing) GetCore() *validatorCore
- func (c AttemptingOffchainClosing) GetInbox() *protocol.Inbox
- func (c AttemptingOffchainClosing) GetMachine() *vm.Machine
- func (c AttemptingOffchainClosing) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c AttemptingOffchainClosing) SendMessageToVM(msg protocol.Message)
- func (bot AttemptingOffchainClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot AttemptingOffchainClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c AttemptingOffchainClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
- type AttemptingUnanimousClosing
- func (c AttemptingUnanimousClosing) Clone() *validatorCore
- func (c AttemptingUnanimousClosing) DeliverMessagesToVM()
- func (c AttemptingUnanimousClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c AttemptingUnanimousClosing) GetBalance() *protocol.BalanceTracker
- func (c AttemptingUnanimousClosing) GetConfig() *validatorConfig
- func (c AttemptingUnanimousClosing) GetCore() *validatorCore
- func (c AttemptingUnanimousClosing) GetInbox() *protocol.Inbox
- func (c AttemptingUnanimousClosing) GetMachine() *vm.Machine
- func (c AttemptingUnanimousClosing) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c AttemptingUnanimousClosing) SendMessageToVM(msg protocol.Message)
- func (bot AttemptingUnanimousClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot AttemptingUnanimousClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c AttemptingUnanimousClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
- type BisectedAssertDefender
- func (c BisectedAssertDefender) GetConfig() *validatorConfig
- func (bot BisectedAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot BisectedAssertDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type ContinuingChallenger
- func (c ContinuingChallenger) GetConfig() *validatorConfig
- func (bot ContinuingChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot ContinuingChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type Error
- type FinalizingAssertObserver
- func (c FinalizingAssertObserver) Clone() *validatorCore
- func (c FinalizingAssertObserver) DeliverMessagesToVM()
- func (c FinalizingAssertObserver) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c FinalizingAssertObserver) GetBalance() *protocol.BalanceTracker
- func (c FinalizingAssertObserver) GetConfig() *validatorConfig
- func (c FinalizingAssertObserver) GetCore() *validatorCore
- func (c FinalizingAssertObserver) GetInbox() *protocol.Inbox
- func (c FinalizingAssertObserver) GetMachine() *vm.Machine
- func (c FinalizingAssertObserver) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c FinalizingAssertObserver) SendMessageToVM(msg protocol.Message)
- func (bot FinalizingAssertObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot FinalizingAssertObserver) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c FinalizingAssertObserver) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
- type FinalizingOffchainClosing
- func (c FinalizingOffchainClosing) Clone() *validatorCore
- func (c FinalizingOffchainClosing) DeliverMessagesToVM()
- func (c FinalizingOffchainClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c FinalizingOffchainClosing) GetBalance() *protocol.BalanceTracker
- func (c FinalizingOffchainClosing) GetConfig() *validatorConfig
- func (c FinalizingOffchainClosing) GetCore() *validatorCore
- func (c FinalizingOffchainClosing) GetInbox() *protocol.Inbox
- func (c FinalizingOffchainClosing) GetMachine() *vm.Machine
- func (c FinalizingOffchainClosing) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c FinalizingOffchainClosing) SendMessageToVM(msg protocol.Message)
- func (bot FinalizingOffchainClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot FinalizingOffchainClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c FinalizingOffchainClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
- type OneStepChallengedAssertDefender
- func (c OneStepChallengedAssertDefender) GetConfig() *validatorConfig
- func (bot OneStepChallengedAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot OneStepChallengedAssertDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type TimedOutAsserterChallenger
- func (c TimedOutAsserterChallenger) GetConfig() *validatorConfig
- func (bot TimedOutAsserterChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot TimedOutAsserterChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type TimedOutAsserterDefender
- func (c TimedOutAsserterDefender) GetConfig() *validatorConfig
- func (bot TimedOutAsserterDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot TimedOutAsserterDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type TimedOutChallengerChallenger
- func (c TimedOutChallengerChallenger) GetConfig() *validatorConfig
- func (bot TimedOutChallengerChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot TimedOutChallengerChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type TimedOutChallengerDefender
- func (c TimedOutChallengerDefender) GetConfig() *validatorConfig
- func (bot TimedOutChallengerDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot TimedOutChallengerDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type Validator
- func (validator *Validator) CloseUnanimousAssertionRequest() <-chan bool
- func (validator *Validator) ConfirmOffchainUnanimousAssertion(unanRequest valmessage.UnanimousRequestData, signatures []valmessage.Signature) (<-chan bool, <-chan error)
- func (validator *Validator) HasPendingMessages() chan bool
- func (validator *Validator) InitiateUnanimousRequest(length uint64, messages []protocol.Message, final bool) (<-chan valmessage.UnanimousRequest, <-chan valmessage.UnanimousUpdateResults, ...)
- func (validator *Validator) RequestCall(msg protocol.Message) (<-chan value.Value, <-chan error)
- func (validator *Validator) RequestDisputableAssertion(length uint64, includePendingMessages bool) <-chan bool
- func (validator *Validator) RequestFollowUnanimous(request valmessage.UnanimousRequestData, messages []protocol.Message) (<-chan valmessage.UnanimousUpdateResults, <-chan error)
- func (validator *Validator) RequestVMState() <-chan valmessage.VMStateData
- func (validator *Validator) Run(recvChan <-chan valmessage.IncomingValidatorMessage, ...)
- type WaitingAssertDefender
- func (c WaitingAssertDefender) Clone() *validatorCore
- func (c WaitingAssertDefender) DeliverMessagesToVM()
- func (c WaitingAssertDefender) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c WaitingAssertDefender) GetBalance() *protocol.BalanceTracker
- func (c WaitingAssertDefender) GetConfig() *validatorConfig
- func (c WaitingAssertDefender) GetCore() *validatorCore
- func (c WaitingAssertDefender) GetInbox() *protocol.Inbox
- func (c WaitingAssertDefender) GetMachine() *vm.Machine
- func (c WaitingAssertDefender) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c WaitingAssertDefender) SendMessageToVM(msg protocol.Message)
- func (bot WaitingAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingAssertDefender) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c WaitingAssertDefender) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
- type WaitingAsserterTimeoutObserver
- func (c WaitingAsserterTimeoutObserver) GetConfig() *validatorConfig
- func (bot WaitingAsserterTimeoutObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingAsserterTimeoutObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type WaitingBisectedDefender
- func (c WaitingBisectedDefender) GetConfig() *validatorConfig
- func (bot WaitingBisectedDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingBisectedDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type WaitingBisectedObserver
- func (c WaitingBisectedObserver) GetConfig() *validatorConfig
- func (bot WaitingBisectedObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingBisectedObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type WaitingChallengeObserver
- func (c WaitingChallengeObserver) GetConfig() *validatorConfig
- func (bot WaitingChallengeObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingChallengeObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type WaitingChallengerTimeoutObserver
- func (c WaitingChallengerTimeoutObserver) GetConfig() *validatorConfig
- func (bot WaitingChallengerTimeoutObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingChallengerTimeoutObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type WaitingContinuingChallenger
- func (c WaitingContinuingChallenger) GetConfig() *validatorConfig
- func (bot WaitingContinuingChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingContinuingChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
- type WaitingObserver
- func (bot WaitingObserver) Clone() WaitingObserver
- func (bot WaitingObserver) CloseUnanimous(retChan chan<- bool) (validatorState, []valmessage.OutgoingMessage, error)
- func (bot WaitingObserver) FastCloseUnanimous() valmessage.SendUnanimousAssertMessage
- func (bot WaitingObserver) FinalizePendingUnanimous(signatures []valmessage.Signature) (validatorState, *proposedUpdate, error)
- func (c WaitingObserver) GetConfig() *validatorConfig
- func (bot WaitingObserver) GetCore() *validatorCore
- func (bot WaitingObserver) OffchainContext(newMessages []protocol.Message, timeBounds protocol.TimeBounds, final bool) (*protocol.MessageQueue, protocol.TimeBounds, uint64)
- func (bot WaitingObserver) OrigInbox() *protocol.Inbox
- func (bot WaitingObserver) PreparePendingUnanimous(request valmessage.UnanimousUpdateRequest) (WaitingObserver, error)
- func (bot WaitingObserver) ProposalResults() valmessage.UnanimousUpdateResults
- func (bot WaitingObserver) ProposedInbox() *protocol.Inbox
- func (bot WaitingObserver) SendMessageToVM(msg protocol.Message)
- func (bot WaitingObserver) SlowCloseUnanimous() valmessage.SendProposeUnanimousAssertMessage
- func (bot WaitingObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingObserver) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- type WaitingOffchainClosing
- func (c WaitingOffchainClosing) Clone() *validatorCore
- func (c WaitingOffchainClosing) DeliverMessagesToVM()
- func (c WaitingOffchainClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c WaitingOffchainClosing) GetBalance() *protocol.BalanceTracker
- func (c WaitingOffchainClosing) GetConfig() *validatorConfig
- func (c WaitingOffchainClosing) GetCore() *validatorCore
- func (c WaitingOffchainClosing) GetInbox() *protocol.Inbox
- func (c WaitingOffchainClosing) GetMachine() *vm.Machine
- func (c WaitingOffchainClosing) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c WaitingOffchainClosing) SendMessageToVM(msg protocol.Message)
- func (bot WaitingOffchainClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot WaitingOffchainClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c WaitingOffchainClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
- type WatchingAssertionObserver
- func (c WatchingAssertionObserver) Clone() *validatorCore
- func (c WatchingAssertionObserver) DeliverMessagesToVM()
- func (c WatchingAssertionObserver) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
- func (c WatchingAssertionObserver) GetBalance() *protocol.BalanceTracker
- func (c WatchingAssertionObserver) GetConfig() *validatorConfig
- func (c WatchingAssertionObserver) GetCore() *validatorCore
- func (c WatchingAssertionObserver) GetInbox() *protocol.Inbox
- func (c WatchingAssertionObserver) GetMachine() *vm.Machine
- func (c WatchingAssertionObserver) OffchainAssert(mq *protocol.MessageQueue, timeBounds protocol.TimeBounds) (*validatorCore, *protocol.Assertion)
- func (c WatchingAssertionObserver) SendMessageToVM(msg protocol.Message)
- func (bot WatchingAssertionObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
- func (bot WatchingAssertionObserver) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
- func (c WatchingAssertionObserver) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefendingValidator ¶
func NewDefendingValidator(core *validatorConfig, assDef protocol.AssertionDefender, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func NewValidatorConfig ¶
func NewValidatorConfig(address common.Address, config *valmessage.VMConfiguration, challengeEverything bool) *validatorConfig
Types ¶
type AttemptingAssertDefender ¶
type AttemptingAssertDefender struct {
// contains filtered or unexported fields
}
func (AttemptingAssertDefender) DeliverMessagesToVM ¶
func (c AttemptingAssertDefender) DeliverMessagesToVM()
func (AttemptingAssertDefender) GeneratePrecondition ¶
func (c AttemptingAssertDefender) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (AttemptingAssertDefender) GetBalance ¶
func (c AttemptingAssertDefender) GetBalance() *protocol.BalanceTracker
func (AttemptingAssertDefender) GetConfig ¶
func (c AttemptingAssertDefender) GetConfig() *validatorConfig
func (AttemptingAssertDefender) GetCore ¶
func (c AttemptingAssertDefender) GetCore() *validatorCore
func (AttemptingAssertDefender) GetMachine ¶
func (AttemptingAssertDefender) OffchainAssert ¶
func (c AttemptingAssertDefender) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (AttemptingAssertDefender) SendMessageToVM ¶
func (AttemptingAssertDefender) UpdateState ¶
func (bot AttemptingAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (AttemptingAssertDefender) UpdateTime ¶
func (bot AttemptingAssertDefender) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (AttemptingAssertDefender) ValidateAssertion ¶
func (c AttemptingAssertDefender) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
type AttemptingOffchainClosing ¶
type AttemptingOffchainClosing struct {
// contains filtered or unexported fields
}
func (AttemptingOffchainClosing) DeliverMessagesToVM ¶
func (c AttemptingOffchainClosing) DeliverMessagesToVM()
func (AttemptingOffchainClosing) GeneratePrecondition ¶
func (c AttemptingOffchainClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (AttemptingOffchainClosing) GetBalance ¶
func (c AttemptingOffchainClosing) GetBalance() *protocol.BalanceTracker
func (AttemptingOffchainClosing) GetConfig ¶
func (c AttemptingOffchainClosing) GetConfig() *validatorConfig
func (AttemptingOffchainClosing) GetCore ¶
func (c AttemptingOffchainClosing) GetCore() *validatorCore
func (AttemptingOffchainClosing) GetMachine ¶
func (AttemptingOffchainClosing) OffchainAssert ¶
func (c AttemptingOffchainClosing) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (AttemptingOffchainClosing) SendMessageToVM ¶
func (AttemptingOffchainClosing) UpdateState ¶
func (bot AttemptingOffchainClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (AttemptingOffchainClosing) UpdateTime ¶
func (bot AttemptingOffchainClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (AttemptingOffchainClosing) ValidateAssertion ¶
func (c AttemptingOffchainClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
type AttemptingUnanimousClosing ¶
type AttemptingUnanimousClosing struct {
// contains filtered or unexported fields
}
func (AttemptingUnanimousClosing) Clone ¶
func (c AttemptingUnanimousClosing) Clone() *validatorCore
func (AttemptingUnanimousClosing) DeliverMessagesToVM ¶
func (c AttemptingUnanimousClosing) DeliverMessagesToVM()
func (AttemptingUnanimousClosing) GeneratePrecondition ¶
func (c AttemptingUnanimousClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (AttemptingUnanimousClosing) GetBalance ¶
func (c AttemptingUnanimousClosing) GetBalance() *protocol.BalanceTracker
func (AttemptingUnanimousClosing) GetConfig ¶
func (c AttemptingUnanimousClosing) GetConfig() *validatorConfig
func (AttemptingUnanimousClosing) GetCore ¶
func (c AttemptingUnanimousClosing) GetCore() *validatorCore
func (AttemptingUnanimousClosing) GetMachine ¶
func (AttemptingUnanimousClosing) OffchainAssert ¶
func (c AttemptingUnanimousClosing) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (AttemptingUnanimousClosing) SendMessageToVM ¶
func (AttemptingUnanimousClosing) UpdateState ¶
func (bot AttemptingUnanimousClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (AttemptingUnanimousClosing) UpdateTime ¶
func (bot AttemptingUnanimousClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (AttemptingUnanimousClosing) ValidateAssertion ¶
func (c AttemptingUnanimousClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
type BisectedAssertDefender ¶
type BisectedAssertDefender struct {
// contains filtered or unexported fields
}
func (BisectedAssertDefender) GetConfig ¶
func (c BisectedAssertDefender) GetConfig() *validatorConfig
func (BisectedAssertDefender) UpdateState ¶
func (bot BisectedAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (BisectedAssertDefender) UpdateTime ¶
func (bot BisectedAssertDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type ContinuingChallenger ¶
type ContinuingChallenger struct {
// contains filtered or unexported fields
}
func (ContinuingChallenger) UpdateState ¶
func (bot ContinuingChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (ContinuingChallenger) UpdateTime ¶
func (bot ContinuingChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type FinalizingAssertObserver ¶
type FinalizingAssertObserver struct { ResultChan chan<- bool // contains filtered or unexported fields }
func (FinalizingAssertObserver) DeliverMessagesToVM ¶
func (c FinalizingAssertObserver) DeliverMessagesToVM()
func (FinalizingAssertObserver) GeneratePrecondition ¶
func (c FinalizingAssertObserver) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (FinalizingAssertObserver) GetBalance ¶
func (c FinalizingAssertObserver) GetBalance() *protocol.BalanceTracker
func (FinalizingAssertObserver) GetConfig ¶
func (c FinalizingAssertObserver) GetConfig() *validatorConfig
func (FinalizingAssertObserver) GetCore ¶
func (c FinalizingAssertObserver) GetCore() *validatorCore
func (FinalizingAssertObserver) GetMachine ¶
func (FinalizingAssertObserver) OffchainAssert ¶
func (c FinalizingAssertObserver) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (FinalizingAssertObserver) SendMessageToVM ¶
func (FinalizingAssertObserver) UpdateState ¶
func (bot FinalizingAssertObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (FinalizingAssertObserver) UpdateTime ¶
func (bot FinalizingAssertObserver) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (FinalizingAssertObserver) ValidateAssertion ¶
func (c FinalizingAssertObserver) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
type FinalizingOffchainClosing ¶
type FinalizingOffchainClosing struct {
// contains filtered or unexported fields
}
func (FinalizingOffchainClosing) DeliverMessagesToVM ¶
func (c FinalizingOffchainClosing) DeliverMessagesToVM()
func (FinalizingOffchainClosing) GeneratePrecondition ¶
func (c FinalizingOffchainClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (FinalizingOffchainClosing) GetBalance ¶
func (c FinalizingOffchainClosing) GetBalance() *protocol.BalanceTracker
func (FinalizingOffchainClosing) GetConfig ¶
func (c FinalizingOffchainClosing) GetConfig() *validatorConfig
func (FinalizingOffchainClosing) GetCore ¶
func (c FinalizingOffchainClosing) GetCore() *validatorCore
func (FinalizingOffchainClosing) GetMachine ¶
func (FinalizingOffchainClosing) OffchainAssert ¶
func (c FinalizingOffchainClosing) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (FinalizingOffchainClosing) SendMessageToVM ¶
func (FinalizingOffchainClosing) UpdateState ¶
func (bot FinalizingOffchainClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (FinalizingOffchainClosing) UpdateTime ¶
func (bot FinalizingOffchainClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (FinalizingOffchainClosing) ValidateAssertion ¶
func (c FinalizingOffchainClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
type OneStepChallengedAssertDefender ¶
type OneStepChallengedAssertDefender struct {
// contains filtered or unexported fields
}
func (OneStepChallengedAssertDefender) GetConfig ¶
func (c OneStepChallengedAssertDefender) GetConfig() *validatorConfig
func (OneStepChallengedAssertDefender) UpdateState ¶
func (bot OneStepChallengedAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (OneStepChallengedAssertDefender) UpdateTime ¶
func (bot OneStepChallengedAssertDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type TimedOutAsserterChallenger ¶
type TimedOutAsserterChallenger struct {
// contains filtered or unexported fields
}
func (TimedOutAsserterChallenger) GetConfig ¶
func (c TimedOutAsserterChallenger) GetConfig() *validatorConfig
func (TimedOutAsserterChallenger) UpdateState ¶
func (bot TimedOutAsserterChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (TimedOutAsserterChallenger) UpdateTime ¶
func (bot TimedOutAsserterChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type TimedOutAsserterDefender ¶
type TimedOutAsserterDefender struct {
// contains filtered or unexported fields
}
func (TimedOutAsserterDefender) GetConfig ¶
func (c TimedOutAsserterDefender) GetConfig() *validatorConfig
func (TimedOutAsserterDefender) UpdateState ¶
func (bot TimedOutAsserterDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (TimedOutAsserterDefender) UpdateTime ¶
func (bot TimedOutAsserterDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type TimedOutChallengerChallenger ¶
type TimedOutChallengerChallenger struct {
// contains filtered or unexported fields
}
func (TimedOutChallengerChallenger) GetConfig ¶
func (c TimedOutChallengerChallenger) GetConfig() *validatorConfig
func (TimedOutChallengerChallenger) UpdateState ¶
func (bot TimedOutChallengerChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (TimedOutChallengerChallenger) UpdateTime ¶
func (bot TimedOutChallengerChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type TimedOutChallengerDefender ¶
type TimedOutChallengerDefender struct {
// contains filtered or unexported fields
}
func (TimedOutChallengerDefender) GetConfig ¶
func (c TimedOutChallengerDefender) GetConfig() *validatorConfig
func (TimedOutChallengerDefender) UpdateState ¶
func (bot TimedOutChallengerDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (TimedOutChallengerDefender) UpdateTime ¶
func (bot TimedOutChallengerDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type Validator ¶
type Validator struct { Name string // contains filtered or unexported fields }
func NewValidator ¶
func NewValidator(name string, address common.Address, inbox *protocol.Inbox, balance *protocol.BalanceTracker, config *valmessage.VMConfiguration, machine *vm.Machine, challengeEverything bool) *Validator
func (*Validator) CloseUnanimousAssertionRequest ¶
func (*Validator) ConfirmOffchainUnanimousAssertion ¶
func (validator *Validator) ConfirmOffchainUnanimousAssertion( unanRequest valmessage.UnanimousRequestData, signatures []valmessage.Signature, ) (<-chan bool, <-chan error)
func (*Validator) HasPendingMessages ¶
func (*Validator) InitiateUnanimousRequest ¶
func (validator *Validator) InitiateUnanimousRequest( length uint64, messages []protocol.Message, final bool, ) ( <-chan valmessage.UnanimousRequest, <-chan valmessage.UnanimousUpdateResults, <-chan error, )
func (*Validator) RequestCall ¶
func (*Validator) RequestDisputableAssertion ¶
func (*Validator) RequestFollowUnanimous ¶
func (validator *Validator) RequestFollowUnanimous( request valmessage.UnanimousRequestData, messages []protocol.Message, ) (<-chan valmessage.UnanimousUpdateResults, <-chan error)
func (*Validator) RequestVMState ¶
func (validator *Validator) RequestVMState() <-chan valmessage.VMStateData
func (*Validator) Run ¶
func (validator *Validator) Run(recvChan <-chan valmessage.IncomingValidatorMessage, sendChan chan<- valmessage.OutgoingMessage)
type WaitingAssertDefender ¶
type WaitingAssertDefender struct {
// contains filtered or unexported fields
}
func (WaitingAssertDefender) DeliverMessagesToVM ¶
func (c WaitingAssertDefender) DeliverMessagesToVM()
func (WaitingAssertDefender) GeneratePrecondition ¶
func (c WaitingAssertDefender) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (WaitingAssertDefender) GetBalance ¶
func (c WaitingAssertDefender) GetBalance() *protocol.BalanceTracker
func (WaitingAssertDefender) GetConfig ¶
func (c WaitingAssertDefender) GetConfig() *validatorConfig
func (WaitingAssertDefender) GetMachine ¶
func (WaitingAssertDefender) OffchainAssert ¶
func (c WaitingAssertDefender) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (WaitingAssertDefender) SendMessageToVM ¶
func (WaitingAssertDefender) UpdateState ¶
func (bot WaitingAssertDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (WaitingAssertDefender) UpdateTime ¶
func (bot WaitingAssertDefender) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (WaitingAssertDefender) ValidateAssertion ¶
func (c WaitingAssertDefender) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
type WaitingAsserterTimeoutObserver ¶
type WaitingAsserterTimeoutObserver struct {
// contains filtered or unexported fields
}
func (WaitingAsserterTimeoutObserver) GetConfig ¶
func (c WaitingAsserterTimeoutObserver) GetConfig() *validatorConfig
func (WaitingAsserterTimeoutObserver) UpdateState ¶
func (bot WaitingAsserterTimeoutObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (WaitingAsserterTimeoutObserver) UpdateTime ¶
func (bot WaitingAsserterTimeoutObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type WaitingBisectedDefender ¶
type WaitingBisectedDefender struct {
// contains filtered or unexported fields
}
func (WaitingBisectedDefender) GetConfig ¶
func (c WaitingBisectedDefender) GetConfig() *validatorConfig
func (WaitingBisectedDefender) UpdateState ¶
func (bot WaitingBisectedDefender) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (WaitingBisectedDefender) UpdateTime ¶
func (bot WaitingBisectedDefender) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type WaitingBisectedObserver ¶
type WaitingBisectedObserver struct {
// contains filtered or unexported fields
}
func (WaitingBisectedObserver) GetConfig ¶
func (c WaitingBisectedObserver) GetConfig() *validatorConfig
func (WaitingBisectedObserver) UpdateState ¶
func (bot WaitingBisectedObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (WaitingBisectedObserver) UpdateTime ¶
func (bot WaitingBisectedObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type WaitingChallengeObserver ¶
type WaitingChallengeObserver struct {
// contains filtered or unexported fields
}
func (WaitingChallengeObserver) GetConfig ¶
func (c WaitingChallengeObserver) GetConfig() *validatorConfig
func (WaitingChallengeObserver) UpdateState ¶
func (bot WaitingChallengeObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (WaitingChallengeObserver) UpdateTime ¶
func (bot WaitingChallengeObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type WaitingChallengerTimeoutObserver ¶
type WaitingChallengerTimeoutObserver struct {
// contains filtered or unexported fields
}
func (WaitingChallengerTimeoutObserver) GetConfig ¶
func (c WaitingChallengerTimeoutObserver) GetConfig() *validatorConfig
func (WaitingChallengerTimeoutObserver) UpdateState ¶
func (bot WaitingChallengerTimeoutObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (WaitingChallengerTimeoutObserver) UpdateTime ¶
func (bot WaitingChallengerTimeoutObserver) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type WaitingContinuingChallenger ¶
type WaitingContinuingChallenger struct {
// contains filtered or unexported fields
}
func (WaitingContinuingChallenger) GetConfig ¶
func (c WaitingContinuingChallenger) GetConfig() *validatorConfig
func (WaitingContinuingChallenger) UpdateState ¶
func (bot WaitingContinuingChallenger) UpdateState(ev valmessage.IncomingMessage, time uint64) (challengeState, []valmessage.OutgoingMessage, error)
func (WaitingContinuingChallenger) UpdateTime ¶
func (bot WaitingContinuingChallenger) UpdateTime(time uint64) (challengeState, []valmessage.OutgoingMessage, error)
type WaitingObserver ¶
type WaitingObserver struct {
// contains filtered or unexported fields
}
func NewWaitingObserver ¶
func NewWaitingObserver(config *validatorConfig, core *validatorCore) WaitingObserver
func (WaitingObserver) Clone ¶
func (bot WaitingObserver) Clone() WaitingObserver
func (WaitingObserver) CloseUnanimous ¶
func (bot WaitingObserver) CloseUnanimous(retChan chan<- bool) (validatorState, []valmessage.OutgoingMessage, error)
func (WaitingObserver) FastCloseUnanimous ¶
func (bot WaitingObserver) FastCloseUnanimous() valmessage.SendUnanimousAssertMessage
func (WaitingObserver) FinalizePendingUnanimous ¶
func (bot WaitingObserver) FinalizePendingUnanimous(signatures []valmessage.Signature) (validatorState, *proposedUpdate, error)
func (WaitingObserver) GetCore ¶
func (bot WaitingObserver) GetCore() *validatorCore
func (WaitingObserver) OffchainContext ¶
func (bot WaitingObserver) OffchainContext( newMessages []protocol.Message, timeBounds protocol.TimeBounds, final bool, ) (*protocol.MessageQueue, protocol.TimeBounds, uint64)
func (WaitingObserver) OrigInbox ¶
func (bot WaitingObserver) OrigInbox() *protocol.Inbox
func (WaitingObserver) PreparePendingUnanimous ¶
func (bot WaitingObserver) PreparePendingUnanimous(request valmessage.UnanimousUpdateRequest) (WaitingObserver, error)
func (WaitingObserver) ProposalResults ¶
func (bot WaitingObserver) ProposalResults() valmessage.UnanimousUpdateResults
func (WaitingObserver) ProposedInbox ¶
func (bot WaitingObserver) ProposedInbox() *protocol.Inbox
func (WaitingObserver) SendMessageToVM ¶
func (bot WaitingObserver) SendMessageToVM(msg protocol.Message)
func (WaitingObserver) SlowCloseUnanimous ¶
func (bot WaitingObserver) SlowCloseUnanimous() valmessage.SendProposeUnanimousAssertMessage
func (WaitingObserver) UpdateState ¶
func (bot WaitingObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (WaitingObserver) UpdateTime ¶
func (bot WaitingObserver) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
type WaitingOffchainClosing ¶
type WaitingOffchainClosing struct {
// contains filtered or unexported fields
}
func (WaitingOffchainClosing) DeliverMessagesToVM ¶
func (c WaitingOffchainClosing) DeliverMessagesToVM()
func (WaitingOffchainClosing) GeneratePrecondition ¶
func (c WaitingOffchainClosing) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (WaitingOffchainClosing) GetBalance ¶
func (c WaitingOffchainClosing) GetBalance() *protocol.BalanceTracker
func (WaitingOffchainClosing) GetConfig ¶
func (c WaitingOffchainClosing) GetConfig() *validatorConfig
func (WaitingOffchainClosing) GetMachine ¶
func (WaitingOffchainClosing) OffchainAssert ¶
func (c WaitingOffchainClosing) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (WaitingOffchainClosing) SendMessageToVM ¶
func (WaitingOffchainClosing) UpdateState ¶
func (bot WaitingOffchainClosing) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (WaitingOffchainClosing) UpdateTime ¶
func (bot WaitingOffchainClosing) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (WaitingOffchainClosing) ValidateAssertion ¶
func (c WaitingOffchainClosing) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
type WatchingAssertionObserver ¶
type WatchingAssertionObserver struct {
// contains filtered or unexported fields
}
func (WatchingAssertionObserver) DeliverMessagesToVM ¶
func (c WatchingAssertionObserver) DeliverMessagesToVM()
func (WatchingAssertionObserver) GeneratePrecondition ¶
func (c WatchingAssertionObserver) GeneratePrecondition(beginTime, endTime uint64, includePendingMessages bool) *protocol.Precondition
func (WatchingAssertionObserver) GetBalance ¶
func (c WatchingAssertionObserver) GetBalance() *protocol.BalanceTracker
func (WatchingAssertionObserver) GetConfig ¶
func (c WatchingAssertionObserver) GetConfig() *validatorConfig
func (WatchingAssertionObserver) GetCore ¶
func (c WatchingAssertionObserver) GetCore() *validatorCore
func (WatchingAssertionObserver) GetMachine ¶
func (WatchingAssertionObserver) OffchainAssert ¶
func (c WatchingAssertionObserver) OffchainAssert( mq *protocol.MessageQueue, timeBounds protocol.TimeBounds, ) (*validatorCore, *protocol.Assertion)
func (WatchingAssertionObserver) SendMessageToVM ¶
func (WatchingAssertionObserver) UpdateState ¶
func (bot WatchingAssertionObserver) UpdateState(ev valmessage.IncomingMessage, time uint64) (validatorState, challengeState, []valmessage.OutgoingMessage, error)
func (WatchingAssertionObserver) UpdateTime ¶
func (bot WatchingAssertionObserver) UpdateTime(time uint64) (validatorState, []valmessage.OutgoingMessage, error)
func (WatchingAssertionObserver) ValidateAssertion ¶
func (c WatchingAssertionObserver) ValidateAssertion(pre *protocol.Precondition, time uint64) bool
Click to show internal directories.
Click to hide internal directories.