Skip to content

Commit e1fb9e8

Browse files
committed
add ServerInfo ready flag
1 parent e268db5 commit e1fb9e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/src/rpc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub struct ServerInfo {
7272
pub network: String,
7373
pub tip: ChainAnchor,
7474
pub chain: ChainInfo,
75+
pub ready: bool,
7576
pub progress: f32,
7677
}
7778

@@ -1631,6 +1632,7 @@ async fn get_server_info(
16311632
pub chain: String,
16321633
pub headers: u32,
16331634
pub blocks: u32,
1635+
pub headerssynced: Option<bool>,
16341636
}
16351637

16361638
let info: Info = rpc
@@ -1653,6 +1655,7 @@ async fn get_server_info(
16531655
blocks: info.blocks,
16541656
headers: info.headers,
16551657
},
1658+
ready: info.headerssynced.unwrap_or(true),
16561659
progress: calc_progress(start_block, tip.height, info.headers),
16571660
})
16581661
}

0 commit comments

Comments
 (0)