Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'leon/query_stats_verification' into 'master'
feat(CON-1142): QueryStats PayloadBuilder validation This MR adds the QueryStats validator and unit tests for the validator. The validator does the following tests: - `NodeId` in the payload matches node id of the block (received via `ProposerContext`) - `epoch > state.aggregated_epoch`: There is a monotony, we can not go back to old epochs - `epoch <= epoch(certified_height)`: There can't be metrics of height greater than `certified_heights` (It is impossible to serve queries against such heights) - No duplicate `CanisterId`s within 1. the payload 2. `past_payloads` with the same proposer 3. unaggregated state with same proposer All of these conditions are captured by unit tests See merge request dfinity-lab/public/ic!15761
- Loading branch information