-
Notifications
You must be signed in to change notification settings - Fork 784
Description
For both the weight diffs and pub key diffs tracking in the P-Chain state, add (height+subnet+nodeID) indexes.
These indexes will be required in order to efficiently construct the full validator set states at a given height by starting from the current validator sets (which are always kept in memory) and apply reverse diffs back to the requested height. The current indexes do not allow for this because they would require looping over all subnets that have ever been created.
Similar to the two existing indexes, the new indexes can be added on a "go forwards" basis. That is, nodes can start constructing them when they are updated, but they do not need to recreate them for historic block heights.
This is necessary for ACP-181 to all for efficient look up of all validator sets.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status