Documentation ¶
Index ¶
- type NoOpConductor
- func (c *NoOpConductor) Close()
- func (c *NoOpConductor) CommitUnsafePayload(ctx context.Context, payload *eth.ExecutionPayloadEnvelope) error
- func (c *NoOpConductor) Enabled(ctx context.Context) bool
- func (c *NoOpConductor) Leader(ctx context.Context) (bool, error)
- func (c *NoOpConductor) OverrideLeader(ctx context.Context) error
- type SequencerConductor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoOpConductor ¶
type NoOpConductor struct{}
NoOpConductor is a no-op conductor that assumes this node is the leader sequencer.
func (*NoOpConductor) CommitUnsafePayload ¶
func (c *NoOpConductor) CommitUnsafePayload(ctx context.Context, payload *eth.ExecutionPayloadEnvelope) error
CommitUnsafePayload commits an unsafe payload to the conductor log.
func (*NoOpConductor) Enabled ¶ added in v1.9.4
func (c *NoOpConductor) Enabled(ctx context.Context) bool
Enabled implements SequencerConductor.
func (*NoOpConductor) Leader ¶
func (c *NoOpConductor) Leader(ctx context.Context) (bool, error)
Leader returns true if this node is the leader sequencer. NoOpConductor always returns true.
func (*NoOpConductor) OverrideLeader ¶ added in v1.8.0
func (c *NoOpConductor) OverrideLeader(ctx context.Context) error
OverrideLeader implements SequencerConductor.
type SequencerConductor ¶
type SequencerConductor interface { // Enabled returns true if the conductor is enabled. Enabled(ctx context.Context) bool // Leader returns true if this node is the leader sequencer. Leader(ctx context.Context) (bool, error) // CommitUnsafePayload commits an unsafe payload to the conductor FSM. CommitUnsafePayload(ctx context.Context, payload *eth.ExecutionPayloadEnvelope) error // OverrideLeader forces current node to be considered leader and be able to start sequencing during disaster situations in HA mode. OverrideLeader(ctx context.Context) error // Close closes the conductor client. Close() }
SequencerConductor is an interface for the driver to communicate with the sequencer conductor. It is used to determine if the current node is the active sequencer, and to commit unsafe payloads to the conductor log.
Click to show internal directories.
Click to hide internal directories.