From 41f7ea46232471125a66130aab4e979fc4a667d4 Mon Sep 17 00:00:00 2001 From: ptrus Date: Wed, 2 Oct 2024 12:45:36 +0200 Subject: [PATCH] tests/e2e_regression: update validator responses with signed blocks --- .changelog/760.feature.md | 1 + .../damask/expected/validator.body | 402 ++++++++++++++++++ .../damask/expected/validator.headers | 2 +- .../eden/expected/validator.body | 402 ++++++++++++++++++ .../eden/expected/validator.headers | 2 +- 5 files changed, 807 insertions(+), 2 deletions(-) create mode 100644 .changelog/760.feature.md diff --git a/.changelog/760.feature.md b/.changelog/760.feature.md new file mode 100644 index 000000000..4dd523e85 --- /dev/null +++ b/.changelog/760.feature.md @@ -0,0 +1 @@ +api/consensus/valudators: Expose validator signed blocks info diff --git a/tests/e2e_regression/damask/expected/validator.body b/tests/e2e_regression/damask/expected/validator.body index 6ab6b3e1d..d569da1bc 100644 --- a/tests/e2e_regression/damask/expected/validator.body +++ b/tests/e2e_regression/damask/expected/validator.body @@ -30,6 +30,408 @@ "in_validator_set": true, "node_id": "wqd9Yy3n7TWKfYRn2bI9Hd6/623CfC7NCUoRbQ5UkR8=", "rank": 92, + "signed_blocks": [ + { + "height": 8049955, + "signed": false + }, + { + "height": 8049954, + "signed": true + }, + { + "height": 8049953, + "signed": true + }, + { + "height": 8049952, + "signed": true + }, + { + "height": 8049951, + "signed": true + }, + { + "height": 8049950, + "signed": true + }, + { + "height": 8049949, + "signed": true + }, + { + "height": 8049948, + "signed": true + }, + { + "height": 8049947, + "signed": true + }, + { + "height": 8049946, + "signed": true + }, + { + "height": 8049945, + "signed": true + }, + { + "height": 8049944, + "signed": true + }, + { + "height": 8049943, + "signed": true + }, + { + "height": 8049942, + "signed": true + }, + { + "height": 8049941, + "signed": true + }, + { + "height": 8049940, + "signed": true + }, + { + "height": 8049939, + "signed": true + }, + { + "height": 8049938, + "signed": true + }, + { + "height": 8049937, + "signed": true + }, + { + "height": 8049936, + "signed": true + }, + { + "height": 8049935, + "signed": true + }, + { + "height": 8049934, + "signed": true + }, + { + "height": 8049933, + "signed": true + }, + { + "height": 8049932, + "signed": true + }, + { + "height": 8049931, + "signed": true + }, + { + "height": 8049930, + "signed": true + }, + { + "height": 8049929, + "signed": true + }, + { + "height": 8049928, + "signed": true + }, + { + "height": 8049927, + "signed": true + }, + { + "height": 8049926, + "signed": true + }, + { + "height": 8049925, + "signed": true + }, + { + "height": 8049924, + "signed": true + }, + { + "height": 8049923, + "signed": true + }, + { + "height": 8049922, + "signed": true + }, + { + "height": 8049921, + "signed": true + }, + { + "height": 8049920, + "signed": true + }, + { + "height": 8049919, + "signed": true + }, + { + "height": 8049918, + "signed": true + }, + { + "height": 8049917, + "signed": true + }, + { + "height": 8049916, + "signed": true + }, + { + "height": 8049915, + "signed": true + }, + { + "height": 8049914, + "signed": true + }, + { + "height": 8049913, + "signed": true + }, + { + "height": 8049912, + "signed": true + }, + { + "height": 8049911, + "signed": true + }, + { + "height": 8049910, + "signed": true + }, + { + "height": 8049909, + "signed": true + }, + { + "height": 8049908, + "signed": true + }, + { + "height": 8049907, + "signed": true + }, + { + "height": 8049906, + "signed": true + }, + { + "height": 8049905, + "signed": true + }, + { + "height": 8049904, + "signed": true + }, + { + "height": 8049903, + "signed": true + }, + { + "height": 8049902, + "signed": true + }, + { + "height": 8049901, + "signed": true + }, + { + "height": 8049900, + "signed": true + }, + { + "height": 8049899, + "signed": true + }, + { + "height": 8049898, + "signed": true + }, + { + "height": 8049897, + "signed": true + }, + { + "height": 8049896, + "signed": true + }, + { + "height": 8049895, + "signed": true + }, + { + "height": 8049894, + "signed": true + }, + { + "height": 8049893, + "signed": true + }, + { + "height": 8049892, + "signed": true + }, + { + "height": 8049891, + "signed": true + }, + { + "height": 8049890, + "signed": true + }, + { + "height": 8049889, + "signed": true + }, + { + "height": 8049888, + "signed": true + }, + { + "height": 8049887, + "signed": true + }, + { + "height": 8049886, + "signed": true + }, + { + "height": 8049885, + "signed": true + }, + { + "height": 8049884, + "signed": true + }, + { + "height": 8049883, + "signed": true + }, + { + "height": 8049882, + "signed": true + }, + { + "height": 8049881, + "signed": true + }, + { + "height": 8049880, + "signed": true + }, + { + "height": 8049879, + "signed": true + }, + { + "height": 8049878, + "signed": true + }, + { + "height": 8049877, + "signed": true + }, + { + "height": 8049876, + "signed": true + }, + { + "height": 8049875, + "signed": true + }, + { + "height": 8049874, + "signed": true + }, + { + "height": 8049873, + "signed": true + }, + { + "height": 8049872, + "signed": true + }, + { + "height": 8049871, + "signed": true + }, + { + "height": 8049870, + "signed": true + }, + { + "height": 8049869, + "signed": true + }, + { + "height": 8049868, + "signed": true + }, + { + "height": 8049867, + "signed": true + }, + { + "height": 8049866, + "signed": true + }, + { + "height": 8049865, + "signed": true + }, + { + "height": 8049864, + "signed": true + }, + { + "height": 8049863, + "signed": true + }, + { + "height": 8049862, + "signed": true + }, + { + "height": 8049861, + "signed": true + }, + { + "height": 8049860, + "signed": true + }, + { + "height": 8049859, + "signed": true + }, + { + "height": 8049858, + "signed": true + }, + { + "height": 8049857, + "signed": true + }, + { + "height": 8049856, + "signed": true + } + ], "start_date": "2022-04-11T09:30:00Z", "voting_power": 34834350461211, "voting_power_cumulative": 34834350461211 diff --git a/tests/e2e_regression/damask/expected/validator.headers b/tests/e2e_regression/damask/expected/validator.headers index 1cce01c2d..06ce86c1c 100644 --- a/tests/e2e_regression/damask/expected/validator.headers +++ b/tests/e2e_regression/damask/expected/validator.headers @@ -2,5 +2,5 @@ HTTP/1.1 200 OK Content-Type: application/json Vary: Origin Date: UNINTERESTING -Content-Length: UNINTERESTING +Transfer-Encoding: chunked diff --git a/tests/e2e_regression/eden/expected/validator.body b/tests/e2e_regression/eden/expected/validator.body index 90c52ed5e..626d35fd5 100644 --- a/tests/e2e_regression/eden/expected/validator.body +++ b/tests/e2e_regression/eden/expected/validator.body @@ -30,6 +30,408 @@ "in_validator_set": true, "node_id": "6wbL5/OxvFGxi55o7AxcwKmfjXbXGC1hw4lfnEZxBXA=", "rank": 1, + "signed_blocks": [ + { + "height": 16818955, + "signed": false + }, + { + "height": 16818954, + "signed": true + }, + { + "height": 16818953, + "signed": true + }, + { + "height": 16818952, + "signed": true + }, + { + "height": 16818951, + "signed": true + }, + { + "height": 16818950, + "signed": true + }, + { + "height": 16818949, + "signed": true + }, + { + "height": 16818948, + "signed": true + }, + { + "height": 16818947, + "signed": true + }, + { + "height": 16818946, + "signed": true + }, + { + "height": 16818945, + "signed": true + }, + { + "height": 16818944, + "signed": true + }, + { + "height": 16818943, + "signed": true + }, + { + "height": 16818942, + "signed": true + }, + { + "height": 16818941, + "signed": true + }, + { + "height": 16818940, + "signed": true + }, + { + "height": 16818939, + "signed": true + }, + { + "height": 16818938, + "signed": true + }, + { + "height": 16818937, + "signed": true + }, + { + "height": 16818936, + "signed": true + }, + { + "height": 16818935, + "signed": true + }, + { + "height": 16818934, + "signed": true + }, + { + "height": 16818933, + "signed": true + }, + { + "height": 16818932, + "signed": true + }, + { + "height": 16818931, + "signed": true + }, + { + "height": 16818930, + "signed": true + }, + { + "height": 16818929, + "signed": true + }, + { + "height": 16818928, + "signed": true + }, + { + "height": 16818927, + "signed": true + }, + { + "height": 16818926, + "signed": true + }, + { + "height": 16818925, + "signed": true + }, + { + "height": 16818924, + "signed": true + }, + { + "height": 16818923, + "signed": true + }, + { + "height": 16818922, + "signed": true + }, + { + "height": 16818921, + "signed": true + }, + { + "height": 16818920, + "signed": true + }, + { + "height": 16818919, + "signed": true + }, + { + "height": 16818918, + "signed": true + }, + { + "height": 16818917, + "signed": true + }, + { + "height": 16818916, + "signed": true + }, + { + "height": 16818915, + "signed": true + }, + { + "height": 16818914, + "signed": true + }, + { + "height": 16818913, + "signed": true + }, + { + "height": 16818912, + "signed": true + }, + { + "height": 16818911, + "signed": true + }, + { + "height": 16818910, + "signed": true + }, + { + "height": 16818909, + "signed": true + }, + { + "height": 16818908, + "signed": true + }, + { + "height": 16818907, + "signed": true + }, + { + "height": 16818906, + "signed": true + }, + { + "height": 16818905, + "signed": true + }, + { + "height": 16818904, + "signed": true + }, + { + "height": 16818903, + "signed": true + }, + { + "height": 16818902, + "signed": true + }, + { + "height": 16818901, + "signed": true + }, + { + "height": 16818900, + "signed": true + }, + { + "height": 16818899, + "signed": true + }, + { + "height": 16818898, + "signed": true + }, + { + "height": 16818897, + "signed": true + }, + { + "height": 16818896, + "signed": true + }, + { + "height": 16818895, + "signed": true + }, + { + "height": 16818894, + "signed": true + }, + { + "height": 16818893, + "signed": true + }, + { + "height": 16818892, + "signed": true + }, + { + "height": 16818891, + "signed": true + }, + { + "height": 16818890, + "signed": true + }, + { + "height": 16818889, + "signed": true + }, + { + "height": 16818888, + "signed": true + }, + { + "height": 16818887, + "signed": true + }, + { + "height": 16818886, + "signed": true + }, + { + "height": 16818885, + "signed": true + }, + { + "height": 16818884, + "signed": true + }, + { + "height": 16818883, + "signed": true + }, + { + "height": 16818882, + "signed": true + }, + { + "height": 16818881, + "signed": true + }, + { + "height": 16818880, + "signed": true + }, + { + "height": 16818879, + "signed": true + }, + { + "height": 16818878, + "signed": true + }, + { + "height": 16818877, + "signed": true + }, + { + "height": 16818876, + "signed": true + }, + { + "height": 16818875, + "signed": true + }, + { + "height": 16818874, + "signed": true + }, + { + "height": 16818873, + "signed": true + }, + { + "height": 16818872, + "signed": true + }, + { + "height": 16818871, + "signed": true + }, + { + "height": 16818870, + "signed": true + }, + { + "height": 16818869, + "signed": true + }, + { + "height": 16818868, + "signed": true + }, + { + "height": 16818867, + "signed": true + }, + { + "height": 16818866, + "signed": true + }, + { + "height": 16818865, + "signed": true + }, + { + "height": 16818864, + "signed": true + }, + { + "height": 16818863, + "signed": true + }, + { + "height": 16818862, + "signed": true + }, + { + "height": 16818861, + "signed": true + }, + { + "height": 16818860, + "signed": true + }, + { + "height": 16818859, + "signed": true + }, + { + "height": 16818858, + "signed": true + }, + { + "height": 16818857, + "signed": true + }, + { + "height": 16818856, + "signed": true + } + ], "start_date": "2023-11-29T10:02:19Z", "voting_power": 31903165146578016, "voting_power_cumulative": 31903165146578016 diff --git a/tests/e2e_regression/eden/expected/validator.headers b/tests/e2e_regression/eden/expected/validator.headers index 1cce01c2d..06ce86c1c 100644 --- a/tests/e2e_regression/eden/expected/validator.headers +++ b/tests/e2e_regression/eden/expected/validator.headers @@ -2,5 +2,5 @@ HTTP/1.1 200 OK Content-Type: application/json Vary: Origin Date: UNINTERESTING -Content-Length: UNINTERESTING +Transfer-Encoding: chunked