• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ergoplatform / sigma-rust / 19909456309

03 Dec 2025 09:29PM UTC coverage: 86.947% (+8.5%) from 78.463%
19909456309

Pull #838

github

web-flow
Merge 717ebc4b7 into 2f840d387
Pull Request #838: Fix CI, bump dependencies and rust toolchain

20 of 24 new or added lines in 12 files covered. (83.33%)

1614 existing lines in 221 files now uncovered.

27478 of 31603 relevant lines covered (86.95%)

506307.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/ergo-rest/src/node_info.rs
1
use std::cmp::Ordering;
2

3
use serde::{Deserialize, Serialize};
4

5
use crate::NodeResponse;
6

7
/// Node extended information from /info REST API endpoint
8
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
9
#[repr(C)]
10
pub struct NodeInfo {
11
    /// Node name
12
    pub name: String,
13
    /// Ergo node app version
14
    #[serde(rename = "appVersion")]
15
    pub app_version: String,
16
}
17

18
impl NodeInfo {
19
    /// Returns true iff the ergo node is at least v4.0.100. This is due to the EIP-37 hard-fork.
20
    pub fn is_at_least_version_4_0_100(&self) -> bool {
×
21
        let ord = self.app_version.cmp(&String::from("4.0.100"));
×
22
        ord == Ordering::Equal || ord == Ordering::Greater
×
UNCOV
23
    }
×
24
}
25

26
impl NodeResponse for NodeInfo {}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc