multiinstance

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package multiinstance manages co-ordination of multiple instance validator actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// ShouldAttest returns true if this Vouch instance should attest.
	ShouldAttest(ctx context.Context, duty *attester.Duty) bool

	// OnAttestationFailure flags that an attempt to attest has failed.
	OnAttestationFailure(ctx context.Context, duty *attester.Duty)

	// ShouldPropose returns true if this Vouch instance should propose.
	ShouldPropose(ctx context.Context, duty *beaconblockproposer.Duty) bool

	// OnProposalFailure flags that an attempt to propose has failed.
	OnProposalFailure(ctx context.Context, duty *beaconblockproposer.Duty)
}

Service is the multi instance service.

Directories

Path Synopsis
Package always will always attest and propose immediately.
Package always will always attest and propose immediately.
Package staticdelay provides a static delay in which a Vouch instance waits to see if another instance has attested or proposed before doing so itself.
Package staticdelay provides a static delay in which a Vouch instance waits to see if another instance has attested or proposed before doing so itself.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL