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

Store past P2P view #1579

Open
Neylix opened this issue Oct 18, 2024 · 0 comments
Open

Store past P2P view #1579

Neylix opened this issue Oct 18, 2024 · 0 comments
Labels
feature New feature request P2P Involve P2P networking

Comments

@Neylix
Copy link
Member

Neylix commented Oct 18, 2024

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

@Neylix Neylix added feature New feature request P2P Involve P2P networking labels Oct 18, 2024
@Neylix Neylix added this to the BLS prerequisites milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request P2P Involve P2P networking
Projects
None yet
Development

No branches or pull requests

1 participant