Implement Session Grid Topology #4454
Labels
T-feat
this issue/pr is a new feature or functionality.
T-implementation
this issue/pr is a new feature or functionality.
Issue summary
The
Session Grid Topology
is the actual representation of the Grid Topology, it should have all the session authorities.Implementation details
The
Session Grid Topology
has the following functionalities:Update Peer ID for Authority IDs: Given a set of authority ids (validators public key) and a peer ID we should append these new peer ID inside the topology peer information for each of the authority ids.
Compute Grid Neighbors: Since the
Session Grid Topology
is the representation of the grid topology, it should be able to compute the grid neighbors for a specific validator index, the algorithm is implemented here. Should return aGrid Neighbor
type, which is a representation of all valid row and column neighbors for the given validator.Grid Neighbor
The type should holds 4 informations:
row validators neighbors
row peer IDs neighbors
column validators neighbors
column peer IDs neighbors
functionalities:
Routing To Column Neighbors
Routing To Row Neighbors
Topology Peer Info
The topology peer info represents a peer in the grid and it should contains:
Other information and links
Acceptance criteria
The text was updated successfully, but these errors were encountered: