cuprate_test_utils::rpc::data::otherConstant MINING_STATUS_RESPONSE
Source pub const MINING_STATUS_RESPONSE: &str = r#"{
"active": false,
"address": "",
"bg_idle_threshold": 0,
"bg_ignore_battery": false,
"bg_min_idle_seconds": 0,
"bg_target": 0,
"block_reward": 0,
"block_target": 120,
"difficulty": 292022797663,
"difficulty_top64": 0,
"is_background_mining_enabled": false,
"pow_algorithm": "RandomX",
"speed": 0,
"status": "OK",
"threads_count": 0,
"untrusted": false,
"wide_difficulty": "0x43fdea455f"
}"#;
Expand description
Documentation, request.
use cuprate_test_utils::rpc::data::other::*;
use serde_json::{to_value, Value};
let value = serde_json::from_str::<Value>(&MINING_STATUS_RESPONSE);