feat: update node type references from 3Node to MyceliumNode across codebase

This commit is contained in:
mik-tf
2025-09-06 22:43:49 -04:00
parent 67577df3d0
commit bf273102cb
17 changed files with 59 additions and 59 deletions

View File

@@ -1064,7 +1064,7 @@ impl DashboardController {
.bandwidth_mbps(node_data_json.get("bandwidth_mbps")
.and_then(|v| v.as_i64())
.unwrap_or(100) as i32)
.node_type("3Node"); // Always 3Node - farmers register 3Nodes to ThreeFold Grid
.node_type("MyceliumNode"); // Always MyceliumNode - farmers register MyceliumNodes to Mycelium Grid
// Add optional fields
if let Some(region) = node_data_json.get("region").and_then(|v| v.as_str()) {
@@ -2141,7 +2141,7 @@ impl DashboardController {
.earnings_today_usd(rust_decimal::Decimal::ZERO)
.health_score(100.0)
.region(node_data.get("region").and_then(|v| v.as_str()).unwrap_or("Global").to_string())
.node_type(node_data.get("node_type").and_then(|v| v.as_str()).unwrap_or("3Node").to_string())
.node_type(node_data.get("node_type").and_then(|v| v.as_str()).unwrap_or("MyceliumNode").to_string())
.build()
{
Ok(node) => node,
@@ -6581,7 +6581,7 @@ impl DashboardController {
rental_options: None,
earnings_today_usd: rust_decimal::Decimal::ZERO,
region: if node_data.country.is_empty() { "Unknown".to_string() } else { node_data.country.clone() },
node_type: "3Node".to_string(),
node_type: "MyceliumNode".to_string(),
slice_formats: None,
staking_options: None,
availability_status: crate::models::user::NodeAvailabilityStatus::Available,