Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dre): Provide an estimate of node types in the dre registry #927

Merged
merged 1 commit into from
Sep 17, 2024

Commits on Sep 13, 2024

  1. feat(dre): Provide an estimate of node types in the dre registry

    The node type information is not yet associated with node records in the registry.
    There is an ongoing effort to rectify that, and to achieve that we need an accurate estimate of the node types based on the information available in the node operator record: rewardable_nodes.
    
    What the code does is:
    - iterate over all nodes, and
    - for each node fetch the node operator
    - count the number of rewardable nodes of in each type (implementation detail: this is done by subtracting the rewardable nodes count)
    - estimate the node type based on the next available rewardable_nodes entry (not yet assigned to some other node record)
    
    Again, this is only an estimate, and the correct information will be added to the registry in the future by the NNS team. At that point, we'll want to adjust the code.
    sasa-tomic committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    7db4431 View commit details
    Browse the repository at this point in the history