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

bmresearch / Solnet / 15458437619

05 Jun 2025 04:27AM UTC coverage: 66.061% (-4.7%) from 70.792%
15458437619

Pull #497

github

web-flow
Merge da1be547c into 632c6bef2
Pull Request #497: Stakepool program

1161 of 2022 branches covered (57.42%)

Branch coverage included in aggregate %.

705 of 1521 new or added lines in 12 files covered. (46.35%)

5823 of 8550 relevant lines covered (68.11%)

987890.44 hits per line

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

0.0
/src/Solnet.Programs/StakePool/Models/ValidatorListHeader.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

7
namespace Solnet.Programs.StakePool.Models
8
{
9
    /// <summary>
10
    /// Helper type to deserialize just the start of a ValidatorList.
11
    /// </summary>
12
    public class ValidatorListHeader
13
    {
14
        /// <summary>
15
        /// Account type, must be ValidatorList currently.
16
        /// </summary>
NEW
17
        public AccountType AccountType { get; set; }
×
18

19
        /// <summary>
20
        /// Maximum allowable number of validators.
21
        /// </summary>
NEW
22
        public uint MaxValidators { get; set; }
×
23

24
        /// <summary>
25
        /// Dynamically calculates the serialized length of the header.
26
        /// </summary>
27
        /// <returns>The length in bytes.</returns>
28
        public int GetSerializedLength()
29
        {
30
            // For example, assume:
31
            // AccountType: 1 byte
32
            // MaxValidators: 4 bytes
NEW
33
            return 1 + 4;
×
34
        }
35
    }
36
}
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