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

tari-project / tari / 16123384529

07 Jul 2025 05:11PM UTC coverage: 64.327% (-7.6%) from 71.89%
16123384529

push

github

web-flow
chore: new release v4.9.0-pre.0 (#7289)

Description
---
new release esmeralda

77151 of 119935 relevant lines covered (64.33%)

227108.34 hits per line

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

0.0
/base_layer/core/src/base_node/rpc/models/get_tip_info.rs
1
// Copyright 2025 The Tari Project
2
// SPDX-License-Identifier: BSD-3-Clause
3

4
use serde::{Deserialize, Serialize};
5
use utoipa::{
6
    openapi::{schema::SchemaType, Object, OneOf, Schema, Type},
7
    ToSchema,
8
};
9

10
#[derive(Serialize, Deserialize, ToSchema, Clone)]
×
11
pub struct TipInfoResponse {
12
    #[schema(schema_with = optional_chain_metadata_schema)]
13
    pub metadata: Option<tari_common_types::chain_metadata::ChainMetadata>,
14
    pub is_synced: bool,
15
}
16

17
pub fn optional_chain_metadata_schema() -> Schema {
×
18
    Schema::OneOf(
×
19
        OneOf::builder()
×
20
            .item(Schema::Object(
×
21
                Object::builder()
×
22
                    .property(
×
23
                        "best_block_height",
×
24
                        Schema::Object(Object::with_type(SchemaType::Type(Type::Integer))),
×
25
                    )
×
26
                    .property("best_block_hash", Schema::Object(Object::with_type(Type::Array)))
×
27
                    .property(
×
28
                        "pruning_horizon",
×
29
                        Schema::Object(Object::with_type(SchemaType::Type(Type::Integer))),
×
30
                    )
×
31
                    .property(
×
32
                        "pruned_height",
×
33
                        Schema::Object(Object::with_type(SchemaType::Type(Type::Integer))),
×
34
                    )
×
35
                    .property(
×
36
                        "accumulated_difficulty",
×
37
                        Schema::Object(Object::with_type(SchemaType::Type(Type::Integer))),
×
38
                    )
×
39
                    .property(
×
40
                        "timestamp",
×
41
                        Schema::Object(Object::with_type(SchemaType::Type(Type::Integer))),
×
42
                    )
×
43
                    .build(),
×
44
            ))
×
45
            .item(Schema::Object(Object::with_type(Type::Null)))
×
46
            .build(),
×
47
    )
×
48
}
×
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

© 2026 Coveralls, Inc