machinepath

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package machinepath provides the service that watches the C-chain indexer for governance-signed machine path lists and forwards them to the TEE node as SET_MACHINE_PATH_LIST direct actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service polls the indexer for newly signed machine path lists and enqueues a SET_MACHINE_PATH_LIST direct action for each list whose nonce advances past the last one submitted.

func NewService

func NewService(aq *queue.ActionQueues, responses *result.ResultStorage, managerAddress common.Address, governance types.Governance, extensionID common.Hash, chainID uint64, initialNonce uint64, m *metrics.Metrics) *Service

NewService creates a machine path list service for the given extension. The manager address must be nonzero; the caller is responsible for skipping service creation when the feature is disabled. governance is the node's governance snapshot as reported in its TEE info; when it is Safe-backed (Safe nonzero), approveMachinePathList Safe transactions are collected and pre-verified as authorization evidence alongside direct governance signatures.

func (*Service) Run

func (s *Service) Run(ctx context.Context, db *gorm.DB, fetchInterval time.Duration)

Run starts the polling loop. It returns immediately; the loop exits when ctx is cancelled.

Jump to

Keyboard shortcuts

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