fix chain dir detection

This commit is contained in:
aglkm
2024-10-01 14:18:23 +03:00
parent 2fa9e29a03
commit 02d6fb7270
2 changed files with 9 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ pub const OUTPUT_SIZE: u64 = 674 + 33 + 1;
#[derive(Debug)]
pub struct Dashboard {
// status
pub chain: String,
pub height: String,
pub sync: String,
pub node_ver: String,
@@ -56,6 +57,7 @@ pub struct Dashboard {
impl Dashboard {
pub fn new() -> Dashboard {
Dashboard {
chain: String::new(),
height: String::new(),
sync: String::new(),
node_ver: String::new(),