expirysweeper

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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