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.