cuprate_test_utils::rpc::data::otherConstant GET_PEER_LIST_RESPONSE
Source pub const GET_PEER_LIST_RESPONSE: &str = r#"{
"gray_list": [{
"host": "161.97.193.0",
"id": 18269586253849566614,
"ip": 12673441,
"last_seen": 0,
"port": 18080
},{
"host": "193.142.4.2",
"id": 10865563782170056467,
"ip": 33853121,
"last_seen": 0,
"port": 18085,
"pruning_seed": 387,
"rpc_port": 19085
}],
"status": "OK",
"untrusted": false,
"white_list": [{
"host": "78.27.98.0",
"id": 11368279936682035606,
"ip": 6429518,
"last_seen": 1721246387,
"port": 18080,
"pruning_seed": 384
},{
"host": "67.4.163.2",
"id": 16545113262826842499,
"ip": 44237891,
"last_seen": 1721246387,
"port": 18080
},{
"host": "70.52.75.3",
"id": 3863337548778177169,
"ip": 55260230,
"last_seen": 1721246387,
"port": 18080,
"rpc_port": 18081
}]
}"#;
Expand description
Documentation, request.
use cuprate_test_utils::rpc::data::other::*;
use serde_json::{to_value, Value};
let value = serde_json::from_str::<Value>(&GET_PEER_LIST_RESPONSE);