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

bmresearch / Solnet / 13296763340

12 Feb 2025 11:14PM UTC coverage: 70.862% (-0.4%) from 71.215%
13296763340

push

github

BifrostTitan
Patch block test & removed dynamic type converter

1114 of 1774 branches covered (62.8%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

4 existing lines in 1 file now uncovered.

5119 of 7022 relevant lines covered (72.9%)

1202814.15 hits per line

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

75.0
/src/Solnet.Rpc/Models/Block.cs
1
namespace Solnet.Rpc.Models
2
{
3
    /// <summary>
4
    /// Represents the block info.
5
    /// </summary>
6
    public class BlockInfo
7
    {
8
        /// <summary>
9
        /// Estimated block production time.
10
        /// </summary>
11
        public long BlockTime { get; set; }
2✔
12

13
        /// <summary>
14
        /// A base-58 encoded public key representing the block hash.
15
        /// </summary>
16
        public string Blockhash { get; set; }
2✔
17

18
        /// <summary>
19
        /// A base-58 encoded public key representing the block hash of this block's parent.
20
        /// <remarks>
21
        /// If the parent block is no longer available due to ledger cleanup, this field will return
22
        /// '11111111111111111111111111111111'
23
        /// </remarks>
24
        /// </summary>
25
        public string PreviousBlockhash { get; set; }
2✔
26

27
        /// <summary>
28
        /// The slot index of this block's parent.
29
        /// </summary>
30
        public ulong ParentSlot { get; set; }
2✔
31

32
        /// <summary>
33
        /// The number of blocks beneath this block.
34
        /// </summary>
35
        public long? BlockHeight { get; set; }
2✔
36

37
        /// <summary>
38
        /// Max transaction version allowed
39
        /// </summary>
UNCOV
40
        public int maxSupportedTransactionVersion { get; set; }
×
41

42
        /// <summary>
43
        /// The rewards for this given block.
44
        /// </summary>
45
        public RewardInfo[] Rewards { get; set; }
3✔
46

47
        /// <summary>
48
        /// Collection of transactions and their metadata within this block.
49
        /// </summary>
50
        public TransactionMetaInfo[] Transactions { get; set; }
3✔
51
    }
52

53
    /// <summary>
54
    /// Represents the block commitment info.
55
    /// </summary>
56
    public class BlockCommitment
57
    {
58
        /// <summary>
59
        /// A list of values representing the amount of cluster stake in lamports that has
60
        /// voted onn the block at each depth from 0 to (max lockout history + 1).
61
        /// </summary>
62
        public ulong[] Commitment { get; set; }
2✔
63

64
        /// <summary>
65
        /// Total active stake, in lamports, of the current epoch.
66
        /// </summary>
67
        public ulong TotalStake { get; set; }
2✔
68
    }
69

70
    /// <summary>
71
    /// Represents the fee calculator info.
72
    /// </summary>
73
    public class FeeCalculator
74
    {
75
        /// <summary>
76
        /// The amount, in lamports, to be paid per signature.
77
        /// </summary>
78
        public ulong LamportsPerSignature { get; set; }
2✔
79
    }
80

81
    /// <summary>
82
    /// Represents the fee calculator info.
83
    /// </summary>
84
    public class FeeCalculatorInfo
85
    {
86
        /// <summary>
87
        /// The fee calculator info.
88
        /// </summary>
UNCOV
89
        public FeeCalculator FeeCalculator { get; set; }
×
90
    }
91

92
    /// <summary>
93
    /// Represents block hash info.
94
    /// </summary>
95
    public class BlockHash
96
    {
97
        /// <summary>
98
        /// A base-58 encoded string representing the block hash.
99
        /// </summary>
UNCOV
100
        public string Blockhash { get; set; }
×
101

102
        /// <summary>
103
        /// The fee calculator data.
104
        /// </summary>
UNCOV
105
        public FeeCalculator FeeCalculator { get; set; }
×
106
    }
107

108
    /// <summary>
109
    /// Represents the latest block hash info.
110
    /// </summary>
111
    public class LatestBlockHash
112
    {
113
        /// <summary>
114
        /// A base-58 encoded string representing the block hash.
115
        /// </summary>
116
        public string Blockhash { get; set; }
4✔
117

118
        /// <summary>
119
        /// The last block height at which the blockhash will be valid.
120
        /// </summary>
121
        public ulong LastValidBlockHeight { get; set; }
2✔
122
    }
123
}
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