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

This commit is contained in:
AetherForge
2026-06-07 04:58:55 -07:00
parent b2a7b1723f
commit 7b2d41cda8
118 changed files with 9938 additions and 223 deletions

View File

@@ -0,0 +1,21 @@
package strategy
import "testing"
func TestEmberwakeHeatSeederUsesSeedPressure(t *testing.T) {
if h := EmberwakeHeat("seeder", 0.8, 0); h != 0.8 {
t.Fatalf("heat=%v", h)
}
}
func TestEmberwakeHeatMinerUsesHashratePressure(t *testing.T) {
if h := EmberwakeHeat("miner", 0, 0.55); h != 0.55 {
t.Fatalf("heat=%v", h)
}
}
func TestEmberwakeHeatClamps(t *testing.T) {
if h := EmberwakeHeat("miner", 0, 2); h != 1 {
t.Fatalf("heat=%v", h)
}
}