Skip to content

Commit bb093a1

Browse files
fix(rpc-json): align GetNetworkInfoResult with Dash v22.1.3 fields
Use connections_in/out and connections_mn[_in/_out] directly to match RPC output and remove backward-compat renames/aliases to keep it simple for CI target.
1 parent aa3dd90 commit bb093a1

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

rpc-json/src/lib.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,11 @@ pub struct GetNetworkInfoResult {
8383
#[serde(rename = "networkactive")]
8484
pub network_active: bool,
8585
pub connections: usize,
86-
#[serde(rename = "inboundconnections")]
87-
pub inbound_connections: usize,
88-
#[serde(rename = "outboundconnections")]
89-
pub outbound_connections: usize,
90-
#[serde(rename = "mnconnections")]
91-
pub mn_connections: usize,
92-
#[serde(rename = "inboundmnconnections")]
93-
pub inbound_mn_connections: usize,
94-
#[serde(rename = "outboundmnconnections")]
95-
pub outbound_mn_connections: usize,
86+
pub connections_in: usize,
87+
pub connections_out: usize,
88+
pub connections_mn: usize,
89+
pub connections_mn_in: usize,
90+
pub connections_mn_out: usize,
9691
#[serde(rename = "socketevents")]
9792
pub socket_events: String,
9893
pub networks: Vec<GetNetworkInfoResultNetwork>,

0 commit comments

Comments
 (0)