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

tari-project / tari / 20715266036

05 Jan 2026 12:22PM UTC coverage: 59.702% (-0.9%) from 60.642%
20715266036

push

github

web-flow
chore(deps): bump azure/trusted-signing-action from 0.5.10 to 0.5.11 (#7632)

Bumps
[azure/trusted-signing-action](https://github.com/azure/trusted-signing-action)
from 0.5.10 to 0.5.11.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/azure/trusted-signing-action/releases">azure/trusted-signing-action's
releases</a>.</em></p>
<blockquote>
<h2>v0.5.11</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: map to environment variables instead of directly from inputs by
<a href="https://github.com/Jaxelr"><code>@​Jaxelr</code></a> in <a
href="https://redirect.github.com/Azure/trusted-signing-action/pull/102">Azure/trusted-signing-action#102</a></li>
<li>chore: update codeowners to trusted signing team by <a
href="https://github.com/Jaxelr"><code>@​Jaxelr</code></a> in <a
href="https://redirect.github.com/Azure/trusted-signing-action/pull/103">Azure/trusted-signing-action#103</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/Azure/trusted-signing-action/compare/v0...v0.5.11">https://github.com/Azure/trusted-signing-action/compare/v0...v0.5.11</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Azure/trusted-signing-action/commit/1d365fec1"><code>1d365fe</code></a>
chore: update codeowners to trusted signing team (<a
href="https://redirect.github.com/azure/trusted-signing-action/issues/103">#103</a>)</li>
<li><a
href="https://github.com/Azure/trusted-signing-action/commit/34bc367eb"><code>34bc367</code></a>
fix: map to environment variables instead of directly from inputs (<a
href="https://redirect.github.com/azure/trusted-signing-action/issues/102">#102</a>)</li>
<li>See full diff in <a
href="https://github.com/azure/trusted-signing-action/compare/v0.5.10...v0.5.11">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubap... (continued)

69282 of 116047 relevant lines covered (59.7%)

300086.98 hits per line

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

28.89
/base_layer/node_components/src/blocks/block_header_accumulated_data.rs
1
//  Copyright 2025, The Tari Project
2
//
3
//  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
4
//  following conditions are met:
5
//
6
//  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
7
//  disclaimer.
8
//
9
//  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
10
//  following disclaimer in the documentation and/or other materials provided with the distribution.
11
//
12
//  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
13
//  products derived from this software without specific prior written permission.
14
//
15
//  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
16
//  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
//  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18
//  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19
//  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
20
//  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
21
//  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
use std::{fmt, fmt::Display};
23

24
use primitive_types::U512;
25
use tari_common_types::types::{HashOutput, PrivateKey};
26
use tari_transaction_components::tari_proof_of_work::{AccumulatedDifficulty, Difficulty};
27

28
/// Accumulated and other pertinent data in the block header acting as a "condensed blockchain snapshot" for the block
29
#[derive(Debug, Clone, PartialEq, Eq)]
30
pub struct BlockHeaderAccumulatedData {
31
    /// The block hash.
32
    pub hash: HashOutput,
33
    /// The total accumulated offset for all kernels in the block.
34
    pub total_kernel_offset: PrivateKey,
35
    /// The achieved difficulty for solving the current block using the specified proof of work algorithm.
36
    pub achieved_difficulty: Difficulty,
37
    /// The total accumulated difficulty for all blocks since Genesis, but not including this block, tracked
38
    /// separately.
39
    pub total_accumulated_difficulty: U512,
40
    /// The total accumulated difficulty for Merged mined monero RandomX proof of work for all blocks since Genesis,
41
    /// but not including this block, tracked separately.
42
    pub accumulated_monero_randomx_difficulty: AccumulatedDifficulty,
43
    /// The total accumulated difficulty for Tari RandomX proof of work for all blocks since Genesis,
44
    /// but not including this block, tracked separately.
45
    pub accumulated_tari_randomx_difficulty: AccumulatedDifficulty,
46
    /// The total accumulated difficulty for SHA3 proof of work for all blocks since Genesis,
47
    /// but not including this block, tracked separately.
48
    pub accumulated_sha3x_difficulty: AccumulatedDifficulty,
49
    /// The total accumulated difficulty for Cuckaroo proof of work for all blocks since Genesis,
50
    pub accumulated_cuckaroo_difficulty: AccumulatedDifficulty,
51
    /// The target difficulty for solving the current block using the specified proof of work algorithm.
52
    pub target_difficulty: Difficulty,
53
}
54

55
impl BlockHeaderAccumulatedData {
56
    pub fn genesis(hash: HashOutput, total_kernel_offset: PrivateKey) -> Self {
383✔
57
        Self {
383✔
58
            hash,
383✔
59
            total_kernel_offset,
383✔
60
            achieved_difficulty: Difficulty::min(),
383✔
61
            total_accumulated_difficulty: 1.into(),
383✔
62
            accumulated_monero_randomx_difficulty: AccumulatedDifficulty::min(),
383✔
63
            accumulated_tari_randomx_difficulty: AccumulatedDifficulty::min(),
383✔
64
            accumulated_sha3x_difficulty: AccumulatedDifficulty::min(),
383✔
65
            accumulated_cuckaroo_difficulty: AccumulatedDifficulty::min(),
383✔
66
            target_difficulty: Difficulty::min(),
383✔
67
        }
383✔
68
    }
383✔
69

70
    pub fn accumulated_monero_randomx_difficulty(&self) -> AccumulatedDifficulty {
×
71
        self.accumulated_monero_randomx_difficulty
×
72
    }
×
73

74
    pub fn accumulated_tari_randomx_difficulty(&self) -> AccumulatedDifficulty {
×
75
        self.accumulated_tari_randomx_difficulty
×
76
    }
×
77

78
    pub fn accumulated_sha3x_difficulty(&self) -> AccumulatedDifficulty {
×
79
        self.accumulated_sha3x_difficulty
×
80
    }
×
81

82
    pub fn accumulated_cuckaroo_difficulty(&self) -> AccumulatedDifficulty {
×
83
        self.accumulated_cuckaroo_difficulty
×
84
    }
×
85
}
86

87
impl Display for BlockHeaderAccumulatedData {
88
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
×
89
        writeln!(f, "Hash: {}", self.hash)?;
×
90
        writeln!(f, "Achieved difficulty: {}", self.achieved_difficulty)?;
×
91
        writeln!(f, "Total accumulated difficulty: {}", self.total_accumulated_difficulty)?;
×
92
        writeln!(
×
93
            f,
×
94
            "Accumulated Monero RandomX difficulty: {}",
×
95
            self.accumulated_monero_randomx_difficulty
96
        )?;
×
97
        writeln!(
×
98
            f,
×
99
            "Accumulated Tari RandomX difficulty: {}",
×
100
            self.accumulated_tari_randomx_difficulty
101
        )?;
×
102
        writeln!(f, "Accumulated sha3 difficulty: {}", self.accumulated_sha3x_difficulty)?;
×
103
        writeln!(
×
104
            f,
×
105
            "Accumulated cuckaroo difficulty: {}",
×
106
            self.accumulated_cuckaroo_difficulty
107
        )?;
×
108
        writeln!(f, "Target difficulty: {}", self.target_difficulty)?;
×
109
        Ok(())
×
110
    }
×
111
}
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