Skip to content

Store past P2P view #1579

Open

Description

Is your feature request related to a problem?

With BLS implementation we need to recalculate the node election for a past transaction.
But currently we cannot retrieve an accurate view of the authorized and available nodes at a specific date in the past.

Describe the solution you'd like

The module P2PView need to be updated to store the required information of the nodes and p2p view at a specific date to be able to get the right information to recalculate an election.
This view needs to store for each summary:

  • the global availability of a node (remember that a node can change it's global availability after the self repair)
  • the node geopatch (remember that a node can change it's geopatch during the day with a node transaction)
  • the node average availability
  • the node last public key

The global availability and average availability could be indexed by summary time and updated during self repair.
The node geopatch and last public key could be indexed by node and update time and updated when node update it through a transaction

Once this p2p view is created, the function P2P.authorized_and_available_nodes/1 should return the nodes with the P2P informations set at the requested time

Additional context

No response

Epic

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    P2PInvolve P2P networkingfeatureNew feature request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions