expirysweeper

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EventStore    *eventstore.Store
	PushCore      *pushcore.Client
	PushSigner    *pushsigner.Signer // Optional — nil disables failure voting
	CheckInterval time.Duration
	Logger        zerolog.Logger
}

Config holds configuration for the expiry sweeper.

type Sweeper

type Sweeper struct {
	// contains filtered or unexported fields
}

Sweeper polls for CONFIRMED events past their expiry block and marks them REVERTED. For SIGN events a failure vote is submitted to Push chain first so the protocol can refund the user. Key events (KEYGEN/KEYREFRESH/QUORUM_CHANGE) are marked REVERTED directly — TSS never started so there is no outbound to vote on.

func NewSweeper

func NewSweeper(cfg Config) *Sweeper

NewSweeper creates a new expiry sweeper.

func (*Sweeper) Start

func (s *Sweeper) Start(ctx context.Context)

Start begins the background sweep loop.

Jump to

Keyboard shortcuts

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