Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Emit Bonded event when rebonding #9040

Merged
3 commits merged into from
Jun 8, 2021
Merged

Emit Bonded event when rebonding #9040

3 commits merged into from
Jun 8, 2021

Conversation

shawntabrizi
Copy link
Member

Fixes: #9039

@shawntabrizi shawntabrizi added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jun 7, 2021
@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Jun 7, 2021
@shawntabrizi
Copy link
Member Author

/benchmark runtime pallet pallet_staking

@parity-benchapp
Copy link

parity-benchapp bot commented Jun 7, 2021

Finished benchmark for branch: shawntabrizi-bond-event

Benchmark: Benchmark Runtime Pallet

cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Results

Pallet: "pallet_staking", Extrinsic: "bond", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 91.95
µs

Reads = 5
Writes = 4
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 91.95
µs

Reads = 5
Writes = 4
Pallet: "pallet_staking", Extrinsic: "bond_extra", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 69.29
µs

Reads = 3
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 69.29
µs

Reads = 3
Writes = 2
Pallet: "pallet_staking", Extrinsic: "unbond", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 63.51
µs

Reads = 4
Writes = 3
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 63.51
µs

Reads = 4
Writes = 3
Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_update", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 64.72
+ s 0.078
µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
s mean µs sigma µs %
0 63.85 0.052 0.0%
2 64.19 0.135 0.2%
4 65.07 0.155 0.2%
6 64.19 0.211 0.3%
8 65.28 0.13 0.1%
10 65.01 0.142 0.2%
12 65.36 0.185 0.2%
14 65.78 0.105 0.1%
16 66.98 0.096 0.1%
18 65.71 0.096 0.1%
20 65.86 0.142 0.2%
22 66.44 0.121 0.1%
24 66.12 0.08 0.1%
26 66.48 0.129 0.1%
28 67.95 0.139 0.2%
30 66.99 0.136 0.2%
32 67.09 0.125 0.1%
34 67.6 0.14 0.2%
36 67.88 0.099 0.1%
38 67.4 0.239 0.3%
40 68.59 0.08 0.1%
42 68.49 0.201 0.2%
44 68.26 0.123 0.1%
46 69.31 0.121 0.1%
48 68.79 0.092 0.1%
50 69.59 0.078 0.1%
52 69.12 0.249 0.3%
54 69.24 0.119 0.1%
56 69.4 0.132 0.1%
58 69.43 0.164 0.2%
60 69.35 0.098 0.1%
62 69.64 0.092 0.1%
64 69.88 0.149 0.2%
66 70.12 0.082 0.1%
68 70.95 0.155 0.2%
70 69.97 0.185 0.2%
72 69.61 0.052 0.0%
74 70.62 0.155 0.2%
76 70.43 0.091 0.1%
78 70.6 0.052 0.0%
80 70.45 0.343 0.4%
82 71.73 0.091 0.1%
84 72.2 0.073 0.1%
86 72.46 0.141 0.1%
88 71.06 0.098 0.1%
90 71.59 0.119 0.1%
92 71.47 0.177 0.2%
94 72.33 0.132 0.1%
96 70.7 0.163 0.2%
98 71.08 0.145 0.2%
100 71.19 0.16 0.2%

Quality and confidence:
param error
s 0

Model:
Time ~= 64.74
+ s 0.077
µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)
Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_kill", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 100.6
+ s 3.064
µs

Reads = 6 + (0 * s)
Writes = 8 + (1 * s)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
s mean µs sigma µs %
0 95.28 0.144 0.1%
2 106.5 0.111 0.1%
4 113.2 0.152 0.1%
6 118.6 0.089 0.0%
8 124.5 0.173 0.1%
10 131.1 0.226 0.1%
12 137.1 0.24 0.1%
14 143.7 0.209 0.1%
16 149.7 0.287 0.1%
18 155.5 0.321 0.2%
20 160.9 0.281 0.1%
22 167.7 0.22 0.1%
24 174.4 0.253 0.1%
26 181.2 0.163 0.0%
28 187.3 0.296 0.1%
30 193 0.273 0.1%
32 199.9 0.257 0.1%
34 204.6 0.282 0.1%
36 211.5 0.262 0.1%
38 217.2 0.396 0.1%
40 224.2 0.498 0.2%
42 230.3 0.465 0.2%
44 236.2 0.429 0.1%
46 242.2 0.371 0.1%
48 248.1 0.316 0.1%
50 254.2 0.36 0.1%
52 259.3 0.306 0.1%
54 265.6 0.374 0.1%
56 272.3 0.584 0.2%
58 277.9 0.261 0.0%
60 284.1 0.403 0.1%
62 290.1 0.626 0.2%
64 296.4 0.413 0.1%
66 302.2 0.359 0.1%
68 308 0.596 0.1%
70 314.5 0.627 0.1%
72 320.7 0.32 0.0%
74 327.7 0.443 0.1%
76 334.2 0.289 0.0%
78 339.3 0.636 0.1%
80 345.7 0.612 0.1%
82 352.4 1.169 0.3%
84 356.6 0.773 0.2%
86 362.6 0.278 0.0%
88 368.1 0.878 0.2%
90 374.1 0.745 0.1%
92 383.3 0.617 0.1%
94 388.8 0.764 0.1%
96 394.9 0.927 0.2%
98 401.5 0.936 0.2%
100 409.2 0.712 0.1%

Quality and confidence:
param error
s 0.001

Model:
Time ~= 100.3
+ s 3.067
µs

Reads = 6 + (0 * s)
Writes = 8 + (1 * s)
Pallet: "pallet_staking", Extrinsic: "validate", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 17.84
µs

Reads = 1
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 17.84
µs

Reads = 1
Writes = 2
Pallet: "pallet_staking", Extrinsic: "kick", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 30.24
+ k 21.38
µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
k mean µs sigma µs %
1 52.85 0.124 0.2%
3 95.39 2.296 2.4%
5 139 0.275 0.1%
7 181.2 0.404 0.2%
9 216.9 1.869 0.8%
11 258.5 5.707 2.2%
13 305.8 4.245 1.3%
15 353.5 0.747 0.2%
17 388.3 0.896 0.2%
19 430.3 6.394 1.4%
21 473.2 6.333 1.3%
23 533.6 0.647 0.1%
25 567 5.327 0.9%
27 612.4 1.591 0.2%
29 657.2 0.821 0.1%
31 695.3 3.195 0.4%
33 744.9 4.939 0.6%
35 777.8 1.525 0.1%
37 819.7 1.635 0.1%
39 866.5 1.354 0.1%
41 892 1.447 0.1%
43 933.3 2.812 0.3%
45 968.3 1.892 0.1%
47 1024 1.906 0.1%
49 1074 2.33 0.2%
51 1105 2.1 0.1%
53 1181 12.42 1.0%
55 1226 7.914 0.6%
57 1246 2.336 0.1%
59 1286 2.835 0.2%
61 1337 6.628 0.4%
63 1357 2.044 0.1%
65 1430 4.452 0.3%
67 1482 7.827 0.5%
69 1514 7.124 0.4%
71 1548 8.807 0.5%
73 1589 3.591 0.2%
75 1633 10.49 0.6%
77 1694 4.32 0.2%
79 1734 11.47 0.6%
81 1781 6.53 0.3%
83 1812 4.802 0.2%
85 1856 4.077 0.2%
87 1903 12.06 0.6%
89 1926 10.69 0.5%
91 1974 7.355 0.3%
93 2015 11.4 0.5%
95 2056 9.382 0.4%
97 2087 5.784 0.2%
99 2130 2.972 0.1%
101 2164 4.296 0.1%
103 2221 5.247 0.2%
105 2269 5.965 0.2%
107 2300 3.417 0.1%
109 2350 5.914 0.2%
111 2456 17.95 0.7%
113 2436 7.26 0.2%
115 2501 9.756 0.3%
117 2531 4.318 0.1%
119 2560 5.552 0.2%
121 2646 8.394 0.3%
123 2696 6.899 0.2%
125 2688 4.846 0.1%
127 2768 9.771 0.3%

Quality and confidence:
param error
k 0.016

Model:
Time ~= 27.93
+ k 21.43
µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)
Pallet: "pallet_staking", Extrinsic: "nominate", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 32.74
+ n 7.018
µs

Reads = 3 + (1 * n)
Writes = 2 + (0 * n)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
n mean µs sigma µs %
1 36.93 0.068 0.1%
2 44.38 0.111 0.2%
3 54.13 0.226 0.4%
4 61.23 0.123 0.2%
5 70.11 0.118 0.1%
6 77.55 0.254 0.3%
7 85.26 0.138 0.1%
8 88.44 0.325 0.3%
9 93.52 0.369 0.3%
10 101.9 0.2 0.1%
11 110.8 0.364 0.3%
12 118.9 0.273 0.2%
13 123.2 0.254 0.2%
14 130.9 0.419 0.3%
15 135 0.336 0.2%
16 144.8 0.698 0.4%

Quality and confidence:
param error
n 0.033

Model:
Time ~= 32.79
+ n 7.006
µs

Reads = 3 + (1 * n)
Writes = 2 + (0 * n)
Pallet: "pallet_staking", Extrinsic: "chill", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 17.01
µs

Reads = 1
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 17.01
µs

Reads = 1
Writes = 2
Pallet: "pallet_staking", Extrinsic: "set_payee", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 14.81
µs

Reads = 1
Writes = 1
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 14.81
µs

Reads = 1
Writes = 1
Pallet: "pallet_staking", Extrinsic: "set_controller", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 33.6
µs

Reads = 3
Writes = 3
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 33.6
µs

Reads = 3
Writes = 3
Pallet: "pallet_staking", Extrinsic: "set_validator_count", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 2.706
µs

Reads = 0
Writes = 1
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 2.706
µs

Reads = 0
Writes = 1
Pallet: "pallet_staking", Extrinsic: "force_no_eras", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 2.973
µs

Reads = 0
Writes = 1
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 2.973
µs

Reads = 0
Writes = 1
Pallet: "pallet_staking", Extrinsic: "force_new_era", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 2.949
µs

Reads = 0
Writes = 1
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 2.949
µs

Reads = 0
Writes = 1
Pallet: "pallet_staking", Extrinsic: "force_new_era_always", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 3.011
µs

Reads = 0
Writes = 1
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 3.011
µs

Reads = 0
Writes = 1
Pallet: "pallet_staking", Extrinsic: "set_invulnerables", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 3.086
+ v 0.005
µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
v mean µs sigma µs %
0 2.973 0.016 0.5%
20 3.26 0.01 0.3%
40 3.44 0.014 0.4%
60 3.517 0.021 0.5%
80 3.593 0.022 0.6%
100 3.66 0.015 0.4%
120 3.767 0.021 0.5%
140 3.879 0.026 0.6%
160 3.965 0.007 0.1%
180 4.036 0.008 0.1%
200 4.087 0.017 0.4%
220 4.196 0.017 0.4%
240 4.297 0.014 0.3%
260 4.4 0.019 0.4%
280 4.591 0.014 0.3%
300 4.66 0.019 0.4%
320 4.635 0.027 0.5%
340 4.741 0.019 0.4%
360 4.829 0.014 0.2%
380 4.971 0.017 0.3%
400 5.083 0.014 0.2%
420 5.204 0.017 0.3%
440 5.397 0.019 0.3%
460 5.454 0.025 0.4%
480 5.555 0.022 0.3%
500 5.465 0.044 0.8%
520 5.797 0.024 0.4%
540 5.866 0.028 0.4%
560 5.988 0.011 0.1%
580 6.054 0.015 0.2%
600 6.096 0.029 0.4%
620 6.259 0.018 0.2%
640 6.352 0.026 0.4%
660 6.586 0.016 0.2%
680 6.497 0.031 0.4%
700 6.592 0.015 0.2%
720 6.928 0.031 0.4%
740 6.993 0.018 0.2%
760 7.013 0.022 0.3%
780 7.127 0.028 0.3%
800 7.198 0.024 0.3%
820 7.27 0.036 0.4%
840 7.354 0.023 0.3%
860 7.557 0.043 0.5%
880 7.698 0.017 0.2%
900 7.81 0.019 0.2%
920 8.005 0.033 0.4%
940 8.035 0.026 0.3%
960 8.177 0.026 0.3%
980 8.23 0.027 0.3%
1000 8.366 0.034 0.4%

Quality and confidence:
param error
v 0

Model:
Time ~= 3.078
+ v 0.005
µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)
Pallet: "pallet_staking", Extrinsic: "force_unstake", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 69.46
+ s 3.066
µs

Reads = 4 + (0 * s)
Writes = 8 + (1 * s)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
s mean µs sigma µs %
0 64.67 0.088 0.1%
2 74.86 0.131 0.1%
4 81.47 0.1 0.1%
6 87.61 0.148 0.1%
8 94.03 0.17 0.1%
10 99.97 0.116 0.1%
12 106.4 0.1 0.0%
14 112.6 0.197 0.1%
16 118.5 0.172 0.1%
18 125.3 0.259 0.2%
20 131 0.217 0.1%
22 137.1 0.122 0.0%
24 143.8 0.167 0.1%
26 150.2 0.25 0.1%
28 156.3 0.152 0.0%
30 161.8 0.321 0.1%
32 167.8 0.205 0.1%
34 173.8 0.46 0.2%
36 179.8 0.299 0.1%
38 185.6 0.549 0.2%
40 192.3 0.272 0.1%
42 198.9 0.35 0.1%
44 205 0.297 0.1%
46 210.4 0.435 0.2%
48 217.2 0.318 0.1%
50 222.4 0.313 0.1%
52 228.7 0.342 0.1%
54 234.3 0.365 0.1%
56 241.1 0.392 0.1%
58 246.6 0.492 0.1%
60 252.5 0.636 0.2%
62 260 0.474 0.1%
64 265 0.381 0.1%
66 271.9 0.669 0.2%
68 277.6 0.436 0.1%
70 283.6 0.767 0.2%
72 289.8 0.372 0.1%
74 296.3 0.447 0.1%
76 301.9 0.673 0.2%
78 308.1 0.942 0.3%
80 315.1 0.82 0.2%
82 320.2 0.939 0.2%
84 325.5 0.749 0.2%
86 331.7 0.871 0.2%
88 339.3 0.75 0.2%
90 344 0.84 0.2%
92 351.6 0.813 0.2%
94 358.2 0.897 0.2%
96 364.6 0.873 0.2%
98 371.4 0.955 0.2%
100 377.8 1.002 0.2%

Quality and confidence:
param error
s 0.001

Model:
Time ~= 69.22
+ s 3.07
µs

Reads = 4 + (0 * s)
Writes = 8 + (1 * s)
Pallet: "pallet_staking", Extrinsic: "cancel_deferred_slash", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 3903
+ s 19.78
µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
s mean µs sigma µs %
1 315.6 0.088 0.0%
20 1054 0.271 0.0%
39 1777 1.065 0.0%
58 2486 1.035 0.0%
77 3180 0.958 0.0%
96 3860 0.093 0.0%
115 4637 17.21 0.3%
134 5270 11.96 0.2%
153 5922 12.52 0.2%
172 6550 11.38 0.1%
191 7167 13.82 0.1%
210 7649 11.07 0.1%
229 8238 13.79 0.1%
248 8812 13.11 0.1%
267 9355 13.08 0.1%
286 9896 13.79 0.1%
305 10420 12.78 0.1%
324 10940 9.454 0.0%
343 11460 11.81 0.1%
362 11910 15.49 0.1%
381 12390 12.23 0.0%
400 12840 3.063 0.0%
419 13280 5.518 0.0%
438 13710 18.89 0.1%
457 14120 12.51 0.0%
476 14520 15.59 0.1%
495 14900 17.21 0.1%
514 15260 4.575 0.0%
533 15630 13.9 0.0%
552 15960 12.56 0.0%
571 16290 10.32 0.0%
590 16620 22.21 0.1%
609 16900 8.074 0.0%
628 17180 10.9 0.0%
647 17460 17.31 0.0%
666 17710 14.27 0.0%
685 17960 13.74 0.0%
704 18180 12.98 0.0%
723 18400 10.38 0.0%
742 18590 13.34 0.0%
761 18780 13.78 0.0%
780 18960 12.78 0.0%
799 19100 10.67 0.0%
818 19250 12.7 0.0%
837 19380 14.31 0.0%
856 19480 13.55 0.0%
875 19600 15.42 0.0%
894 19670 13.49 0.0%
913 19730 18.85 0.0%
932 19820 24.3 0.1%
951 19840 12.75 0.0%
970 19870 12.55 0.0%
989 19880 7.5 0.0%

Quality and confidence:
param error
s 0.222

Model:
Time ~= 3460
+ s 19.78
µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)
Pallet: "pallet_staking", Extrinsic: "payout_stakers_dead_controller", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 127.6
+ n 63.02
µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
n mean µs sigma µs %
1 194.7 0.749 0.3%
6 510 0.584 0.1%
11 829.1 1.254 0.1%
16 1138 2.026 0.1%
21 1445 2.596 0.1%
26 1762 2.179 0.1%
31 2066 2.991 0.1%
36 2380 1.843 0.0%
41 2701 4.692 0.1%
46 3050 18.96 0.6%
51 3335 6.926 0.2%
56 3669 6.708 0.1%
61 3961 6.516 0.1%
66 4275 11.17 0.2%
71 4612 12.55 0.2%
76 4932 6.654 0.1%
81 5277 17.26 0.3%
86 5586 3.948 0.0%
91 5899 11.06 0.1%
96 6174 16.47 0.2%
101 6480 9.099 0.1%
106 6814 10.58 0.1%
111 7108 7.101 0.0%
116 7374 11.15 0.1%
121 7704 11.8 0.1%
126 8081 15.46 0.1%
131 8342 21.79 0.2%
136 8692 13.62 0.1%
141 8968 18.38 0.2%
146 9307 19.59 0.2%
151 9588 15.23 0.1%
156 9912 24.98 0.2%
161 10280 19.19 0.1%
166 10650 12.36 0.1%
171 10850 15.98 0.1%
176 11220 28.29 0.2%
181 11540 29.39 0.2%
186 11860 23.61 0.1%
191 12130 18.4 0.1%
196 12520 89.63 0.7%
201 12770 20.58 0.1%
206 13160 19.8 0.1%
211 13380 23.41 0.1%
216 13750 20 0.1%
221 14140 27.89 0.1%
226 14360 45.46 0.3%
231 14790 128.4 0.8%
236 15010 20.08 0.1%
241 15210 21.92 0.1%
246 15650 30.15 0.1%
251 15990 24.79 0.1%
256 16290 37.44 0.2%

Quality and confidence:
param error
n 0.027

Model:
Time ~= 120.4
+ n 63.09
µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)
Pallet: "pallet_staking", Extrinsic: "payout_stakers_alive_staked", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 175.7
+ n 78.63
µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
n mean µs sigma µs %
1 240.6 0.486 0.2%
6 631 1.356 0.2%
11 1037 2.797 0.2%
16 1438 4.576 0.3%
21 1816 3.937 0.2%
26 2207 9.375 0.4%
31 2631 6.968 0.2%
36 3015 9.728 0.3%
41 3396 13.48 0.3%
46 3803 13.38 0.3%
51 4177 6.434 0.1%
56 4553 17.03 0.3%
61 5013 15.13 0.3%
66 5312 7.666 0.1%
71 5763 18.35 0.3%
76 6190 29.15 0.4%
81 6529 11.15 0.1%
86 6873 19.58 0.2%
91 7417 20.23 0.2%
96 7826 18.82 0.2%
101 8086 15.16 0.1%
106 8621 26.89 0.3%
111 8951 25.24 0.2%
116 9363 53.24 0.5%
121 9766 18.96 0.1%
126 9981 24.28 0.2%
131 10450 26 0.2%
136 10850 16.26 0.1%
141 11220 30.26 0.2%
146 11660 17.39 0.1%
151 12000 12.78 0.1%
156 12520 14.47 0.1%
161 12790 29.6 0.2%
166 13140 19.42 0.1%
171 13640 32.08 0.2%
176 13850 16.57 0.1%
181 14600 13.97 0.0%
186 14790 30.62 0.2%
191 15260 25.49 0.1%
196 15740 26.75 0.1%
201 16060 76.95 0.4%
206 16260 23.19 0.1%
211 16860 34.97 0.2%
216 17130 13.43 0.0%
221 17460 40.39 0.2%
226 17850 46.77 0.2%
231 18320 59.42 0.3%
236 18930 28.93 0.1%
241 19320 25.53 0.1%
246 19300 40.26 0.2%
251 19820 56.09 0.2%
256 20270 60.7 0.2%

Quality and confidence:
param error
n 0.051

Model:
Time ~= 181.4
+ n 78.63
µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)
Pallet: "pallet_staking", Extrinsic: "rebond", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 59.34
+ l 0.065
µs

Reads = 3 + (0 * l)
Writes = 3 + (0 * l)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
l mean µs sigma µs %
1 59.53 0.171 0.2%
2 59.34 0.115 0.1%
3 59.03 0.072 0.1%
4 59.49 0.066 0.1%
5 59.38 0.182 0.3%
6 59.33 0.069 0.1%
7 60.1 0.172 0.2%
8 59.76 0.075 0.1%
9 60.04 0.148 0.2%
10 60.01 0.12 0.1%
11 60.64 0.138 0.2%
12 59.94 0.098 0.1%
13 60.25 0.114 0.1%
14 60.61 0.039 0.0%
15 60.12 0.126 0.2%
16 60.2 0.095 0.1%
17 60.58 0.027 0.0%
18 61.26 0.114 0.1%
19 60.93 0.099 0.1%
20 60.75 0.051 0.0%
21 60.38 0.132 0.2%
22 61.21 0.117 0.1%
23 60.9 0.112 0.1%
24 61.01 0.086 0.1%
25 61.01 0.072 0.1%
26 61.03 0.065 0.1%
27 60.61 0.102 0.1%
28 60.73 0.048 0.0%
29 61.25 0.083 0.1%
30 60.57 0.101 0.1%
31 61.86 0.064 0.1%
32 61.17 0.068 0.1%

Quality and confidence:
param error
l 0.002

Model:
Time ~= 59.34
+ l 0.064
µs

Reads = 3 + (0 * l)
Writes = 3 + (0 * l)
Pallet: "pallet_staking", Extrinsic: "set_history_depth", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 0
+ e 44.37
µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
e mean µs sigma µs %
1 49.56 0.099 0.1%
2 83.01 0.112 0.1%
3 115.4 0.185 0.1%
4 151.3 0.6 0.3%
5 181.4 1.549 0.8%
6 215.6 0.733 0.3%
7 251 0.422 0.1%
8 281.6 0.642 0.2%
9 315.5 0.326 0.1%
10 349.3 0.862 0.2%
11 381.6 0.642 0.1%
12 422.5 0.503 0.1%
13 452.5 1.096 0.2%
14 493.2 0.746 0.1%
15 521.9 1.621 0.3%
16 552.3 0.826 0.1%
17 596.9 0.731 0.1%
18 635.3 1.197 0.1%
19 683 1.344 0.1%
20 718.2 1.725 0.2%
21 755.7 2.145 0.2%
22 787.3 1.135 0.1%
23 831.9 1.198 0.1%
24 875.5 1.561 0.1%
25 908.9 0.979 0.1%
26 943.6 1.852 0.1%
27 974.9 1.205 0.1%
28 1020 1.343 0.1%
29 1056 2.153 0.2%
30 1108 1.839 0.1%
31 1153 1.23 0.1%
32 1201 1.312 0.1%
33 1223 2.14 0.1%
34 1260 2.3 0.1%
35 1316 2.09 0.1%
36 1348 1.208 0.0%
37 1394 2.441 0.1%
38 1427 3.827 0.2%
39 1438 2.119 0.1%
40 1533 2.75 0.1%
41 1545 2.669 0.1%
42 1584 2.445 0.1%
43 1628 2.789 0.1%
44 1678 2.437 0.1%
45 1731 4.485 0.2%
46 1782 1.397 0.0%
47 1807 2.312 0.1%
48 1885 9.408 0.4%
49 1908 4.804 0.2%
50 1957 1.433 0.0%
51 1995 2.91 0.1%
52 2030 6.183 0.3%
53 2083 5.814 0.2%
54 2142 5.525 0.2%
55 2141 3.323 0.1%
56 2214 2.045 0.0%
57 2259 4.429 0.1%
58 2347 7.824 0.3%
59 2353 7.49 0.3%
60 2412 4.148 0.1%
61 2460 7.703 0.3%
62 2491 2.149 0.0%
63 2553 4.788 0.1%
64 2616 8.8 0.3%
65 2636 10.52 0.3%
66 2654 6.839 0.2%
67 2729 4.38 0.1%
68 2750 3.888 0.1%
69 2821 4.412 0.1%
70 2871 3.731 0.1%
71 2912 8.92 0.3%
72 2984 8.11 0.2%
73 2993 8.065 0.2%
74 3067 4.768 0.1%
75 3084 5.623 0.1%
76 3193 4.454 0.1%
77 3227 6.069 0.1%
78 3292 10.92 0.3%
79 3366 10.98 0.3%
80 3372 8.519 0.2%
81 3461 4.75 0.1%
82 3459 2.484 0.0%
83 3561 4.905 0.1%
84 3612 2.164 0.0%
85 3672 5.331 0.1%
86 3669 4.147 0.1%
87 3742 13.32 0.3%
88 3817 8.958 0.2%
89 3824 6.997 0.1%
90 3928 5.912 0.1%
91 3991 6.005 0.1%
92 3990 5.113 0.1%
93 4099 5.115 0.1%
94 4161 10.81 0.2%
95 4157 13.14 0.3%
96 4229 7.719 0.1%
97 4274 7.177 0.1%
98 4349 4.514 0.1%
99 4446 5.896 0.1%
100 4459 9.543 0.2%

Quality and confidence:
param error
e 0.097

Model:
Time ~= 0
+ e 44.6
µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)
Pallet: "pallet_staking", Extrinsic: "reap_stash", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 72.39
+ s 3.059
µs

Reads = 4 + (0 * s)
Writes = 8 + (1 * s)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
s mean µs sigma µs %
1 74.56 0.072 0.0%
2 77.93 0.111 0.1%
3 81.02 0.125 0.1%
4 84.75 0.072 0.0%
5 87.16 0.075 0.0%
6 90.96 0.107 0.1%
7 93.52 0.098 0.1%
8 96.6 0.087 0.0%
9 99.8 0.086 0.0%
10 102.8 0.11 0.1%
11 105.7 0.097 0.0%
12 108.8 0.154 0.1%
13 112.1 0.246 0.2%
14 115 0.257 0.2%
15 118.7 0.167 0.1%
16 121.4 0.185 0.1%
17 124.3 0.133 0.1%
18 127.7 0.199 0.1%
19 130.1 0.258 0.1%
20 133.4 0.149 0.1%
21 137.1 0.188 0.1%
22 140 0.148 0.1%
23 142.8 0.196 0.1%
24 146.4 0.238 0.1%
25 149.9 0.137 0.0%
26 152.7 0.14 0.0%
27 155.7 0.142 0.0%
28 158.4 0.152 0.0%
29 161.4 0.146 0.0%
30 164.2 0.293 0.1%
31 167.3 0.25 0.1%
32 170.1 0.127 0.0%
33 173.6 0.288 0.1%
34 176.1 0.274 0.1%
35 179.2 0.195 0.1%
36 182.3 0.164 0.0%
37 185.6 0.279 0.1%
38 188.6 0.22 0.1%
39 191.8 0.165 0.0%
40 195.6 0.382 0.1%
41 198.8 0.182 0.0%
42 201.5 0.231 0.1%
43 204.2 0.168 0.0%
44 207.5 0.492 0.2%
45 210.6 0.275 0.1%
46 213.1 0.515 0.2%
47 216.1 0.406 0.1%
48 220.1 0.436 0.1%
49 222.2 0.331 0.1%
50 224.7 0.568 0.2%
51 228 0.307 0.1%
52 230.7 0.287 0.1%
53 233.9 0.44 0.1%
54 236.9 0.36 0.1%
55 239.9 0.2 0.0%
56 243.3 0.399 0.1%
57 246.2 0.303 0.1%
58 248.6 0.319 0.1%
59 253.5 0.298 0.1%
60 254.6 0.26 0.1%
61 258.5 0.358 0.1%
62 261.5 0.235 0.0%
63 266.6 2.912 1.0%
64 279.9 13.16 4.7%
65 274.3 2.697 0.9%
66 280 0.238 0.0%
67 278.9 2.193 0.7%
68 283 2.933 1.0%
69 283.2 0.522 0.1%
70 288.7 4.947 1.7%
71 292.2 3.488 1.1%
72 293.3 0.684 0.2%
73 295.9 0.711 0.2%
74 300.1 1.056 0.3%
75 301.6 0.744 0.2%
76 304.1 0.693 0.2%
77 306.7 0.354 0.1%
78 310.1 0.66 0.2%
79 312.6 0.506 0.1%
80 315.7 0.57 0.1%
81 318 0.465 0.1%
82 322 0.725 0.2%
83 325 0.488 0.1%
84 328.4 0.718 0.2%
85 332.4 0.394 0.1%
86 336 0.68 0.2%
87 339.5 0.785 0.2%
88 340.6 0.604 0.1%
89 344.1 0.556 0.1%
90 346.1 0.391 0.1%
91 350.5 0.535 0.1%
92 355.9 0.577 0.1%
93 357.3 0.459 0.1%
94 361.5 0.679 0.1%
95 362.8 0.854 0.2%
96 366.1 0.735 0.2%
97 369.6 0.886 0.2%
98 373.6 0.714 0.1%
99 377.6 0.955 0.2%
100 379.4 1.089 0.2%

Quality and confidence:
param error
s 0.002

Model:
Time ~= 72.35
+ s 3.066
µs

Reads = 4 + (0 * s)
Writes = 8 + (1 * s)
Pallet: "pallet_staking", Extrinsic: "new_era", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 0
+ v 369.4
+ n 72.28
µs

Reads = 10 + (3 * v) + (3 * n)
Writes = 9 + (3 * v) + (0 * n)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
v n mean µs sigma µs %
1 100 4819 8.224 0.1%
2 100 5151 20.83 0.4%
3 100 5451 20.33 0.3%
4 100 5753 13.14 0.2%
5 100 6011 14.77 0.2%
6 100 6428 13 0.2%
7 100 6722 8.112 0.1%
8 100 7189 16.04 0.2%
9 100 7708 14.66 0.1%
10 1 1012 3.613 0.3%
10 2 1095 4.361 0.3%
10 3 1169 4.508 0.3%
10 4 1231 1.862 0.1%
10 5 1321 4.516 0.3%
10 6 1358 2.471 0.1%
10 7 1450 4.272 0.2%
10 8 1535 4.49 0.2%
10 9 1595 4.342 0.2%
10 10 1660 2.45 0.1%
10 11 1713 3.232 0.1%
10 12 1807 3.413 0.1%
10 13 1886 3.332 0.1%
10 14 1947 2.271 0.1%
10 15 2031 2.066 0.1%
10 16 2093 7.383 0.3%
10 17 2141 5.17 0.2%
10 18 2298 5.037 0.2%
10 19 2324 5.999 0.2%
10 20 2393 13.7 0.5%
10 21 2430 5.269 0.2%
10 22 2504 4.307 0.1%
10 23 2630 4.13 0.1%
10 24 2663 5.604 0.2%
10 25 2722 7.233 0.2%
10 26 2837 6.848 0.2%
10 27 2884 9.826 0.3%
10 28 2980 13.62 0.4%
10 29 3061 6.649 0.2%
10 30 3110 8.993 0.2%
10 31 3190 6.101 0.1%
10 32 3294 12.36 0.3%
10 33 3377 8.291 0.2%
10 34 3361 5.267 0.1%
10 35 3473 16.91 0.4%
10 36 3564 12.32 0.3%
10 37 3597 4.196 0.1%
10 38 3727 7.418 0.1%
10 39 3759 9.203 0.2%
10 40 3869 11 0.2%
10 41 3942 9.25 0.2%
10 42 3968 14.21 0.3%
10 43 4024 8.861 0.2%
10 44 4118 8.278 0.2%
10 45 4228 6.649 0.1%
10 46 4260 14.58 0.3%
10 47 4333 11.15 0.2%
10 48 4461 10.1 0.2%
10 49 4506 16.41 0.3%
10 50 4558 18.6 0.4%
10 51 4577 11.84 0.2%
10 52 4699 10.08 0.2%
10 53 4751 12.63 0.2%
10 54 4903 13.8 0.2%
10 55 4981 5.958 0.1%
10 56 5019 11.9 0.2%
10 57 5000 10.62 0.2%
10 58 5218 11.26 0.2%
10 59 5154 10.66 0.2%
10 60 5359 19.23 0.3%
10 61 5448 20.46 0.3%
10 62 5554 12.72 0.2%
10 63 5579 18.9 0.3%
10 64 5687 8.251 0.1%
10 65 5757 23.6 0.4%
10 66 5750 17.22 0.2%
10 67 5864 8.016 0.1%
10 68 5946 17.44 0.2%
10 69 5857 20.25 0.3%
10 70 6109 32.94 0.5%
10 71 6010 16.9 0.2%
10 72 6257 32.23 0.5%
10 73 6313 18.24 0.2%
10 74 6242 19.09 0.3%
10 75 6325 13.46 0.2%
10 76 6461 24.35 0.3%
10 77 6475 15.81 0.2%
10 78 6545 13.88 0.2%
10 79 6560 11.15 0.1%
10 80 6738 14.79 0.2%
10 81 6937 17.08 0.2%
10 82 6879 14.4 0.2%
10 83 6941 23.46 0.3%
10 84 6869 7.118 0.1%
10 85 7086 15.82 0.2%
10 86 7191 13.73 0.1%
10 87 7245 13.6 0.1%
10 88 7254 10.86 0.1%
10 89 7395 20.49 0.2%
10 90 7476 15.16 0.2%
10 91 7493 19.34 0.2%
10 92 7558 17.7 0.2%
10 93 7616 22.31 0.2%
10 94 7659 21.29 0.2%
10 95 7777 19.47 0.2%
10 96 8061 26.18 0.3%
10 97 7991 10.2 0.1%
10 98 7982 11.95 0.1%
10 99 8054 18.47 0.2%
10 100 8159 19.63 0.2%

Quality and confidence:
param error
v 1.462
n 0.073

Model:
Time ~= 0
+ v 393
+ n 72.01
µs

Reads = 10 + (3 * v) + (3 * n)
Writes = 9 + (3 * v) + (0 * n)
Pallet: "pallet_staking", Extrinsic: "get_npos_voters", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 0
+ v 35.04
+ n 39.5
+ s 21.02
µs

Reads = 3 + (3 * v) + (3 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
v n s mean µs sigma µs %
200 400 20 22000 85.88 0.3%
204 400 20 21740 66.64 0.3%
208 400 20 21950 100.1 0.4%
212 400 20 22020 154.4 0.7%
216 400 20 22500 112.9 0.5%
220 400 20 22460 166.7 0.7%
224 400 20 22190 146 0.6%
228 400 20 23130 78.67 0.3%
232 400 20 22150 150.3 0.6%
236 400 20 22590 87.38 0.3%
240 400 20 23540 48.03 0.2%
244 400 20 22850 76.13 0.3%
248 400 20 23240 49.7 0.2%
252 400 20 23650 108.6 0.4%
256 400 20 23230 164.4 0.7%
260 400 20 24220 109.5 0.4%
264 400 20 24550 161.8 0.6%
268 400 20 24240 115.8 0.4%
272 400 20 24220 151.2 0.6%
276 400 20 24600 52.75 0.2%
280 400 20 24950 145 0.5%
284 400 20 24830 70.41 0.2%
288 400 20 24940 150.4 0.6%
292 400 20 24810 108 0.4%
296 400 20 25490 133.4 0.5%
300 400 20 25380 178.5 0.7%
304 400 20 25290 126 0.4%
308 400 20 25610 155.9 0.6%
312 400 20 26280 147 0.5%
316 400 20 25710 180.5 0.7%
320 400 20 26330 110.8 0.4%
324 400 20 25970 261.3 1.0%
328 400 20 26790 208.2 0.7%
332 400 20 25880 107.6 0.4%
336 400 20 26490 189.6 0.7%
340 400 20 25730 127.5 0.4%
344 400 20 27180 95.47 0.3%
348 400 20 26460 205.8 0.7%
352 400 20 26410 151.9 0.5%
356 400 20 27490 147.9 0.5%
360 400 20 27840 219.4 0.7%
364 400 20 27340 191.7 0.7%
368 400 20 27570 194.9 0.7%
372 400 20 27610 137.7 0.4%
376 400 20 28160 207.6 0.7%
380 400 20 28260 119.2 0.4%
384 400 20 28450 218.6 0.7%
388 400 20 28140 128.7 0.4%
392 400 20 28160 181.7 0.6%
396 400 20 27980 131.6 0.4%
400 200 20 20970 67.6 0.3%
400 204 20 20830 144.1 0.6%
400 208 20 20990 33.42 0.1%
400 212 20 21490 95.37 0.4%
400 216 20 21480 212.1 0.9%
400 220 20 22180 94.37 0.4%
400 224 20 22250 112.6 0.5%
400 228 20 21480 96.07 0.4%
400 232 20 22290 86.08 0.3%
400 236 20 21930 52.31 0.2%
400 240 20 22990 166.5 0.7%
400 244 20 22580 101.5 0.4%
400 248 20 22920 66.75 0.2%
400 252 20 22660 97.56 0.4%
400 256 20 23070 131.9 0.5%
400 260 20 24080 99.1 0.4%
400 264 20 24440 85.55 0.3%
400 268 20 24230 109.4 0.4%
400 272 20 23220 80.9 0.3%
400 276 20 23520 98.47 0.4%
400 280 20 24300 89.69 0.3%
400 284 20 25060 83 0.3%
400 288 20 24840 129.5 0.5%
400 292 20 24560 112.3 0.4%
400 296 20 24740 173.3 0.7%
400 300 20 25190 77.32 0.3%
400 304 20 25730 125 0.4%
400 308 20 25850 133.7 0.5%
400 312 20 25850 121.3 0.4%
400 316 20 25470 152.3 0.5%
400 320 20 24950 160 0.6%
400 324 20 25860 170.3 0.6%
400 328 20 25960 140.8 0.5%
400 332 20 26600 129.3 0.4%
400 336 20 26410 133.3 0.5%
400 340 20 26370 201.8 0.7%
400 344 20 26950 143.4 0.5%
400 348 20 26740 115.9 0.4%
400 352 20 26960 130 0.4%
400 356 20 26760 156.4 0.5%
400 360 20 27210 172.5 0.6%
400 364 20 27800 137.6 0.4%
400 368 20 28100 175.8 0.6%
400 372 20 27620 148.6 0.5%
400 376 20 27980 282 1.0%
400 380 20 28200 116.1 0.4%
400 384 20 28090 221.8 0.7%
400 388 20 28820 323.4 1.1%
400 392 20 28170 164.3 0.5%
400 396 20 28230 119.8 0.4%
400 400 1 28590 205.6 0.7%
400 400 2 27250 131.3 0.4%
400 400 3 28030 135.5 0.4%
400 400 4 27960 131.7 0.4%
400 400 5 29040 132.8 0.4%
400 400 6 28360 185.1 0.6%
400 400 7 28480 121.7 0.4%
400 400 8 28520 236.6 0.8%
400 400 9 28690 210.7 0.7%
400 400 10 28890 225.2 0.7%
400 400 11 28970 166.2 0.5%
400 400 12 28560 133.7 0.4%
400 400 13 28950 236 0.8%
400 400 14 28440 144.7 0.5%
400 400 15 28120 216.5 0.7%
400 400 16 27790 100.9 0.3%
400 400 17 28380 123.2 0.4%
400 400 18 28050 117.6 0.4%
400 400 19 28530 197.9 0.6%
400 400 20 28900 149 0.5%

Quality and confidence:
param error
v 0.235
n 0.235
s 3.2

Model:
Time ~= 0
+ v 35.21
+ n 38.39
+ s 31.13
µs

Reads = 3 + (3 * v) + (3 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)
Pallet: "pallet_staking", Extrinsic: "get_npos_targets", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 38.82
+ v 15.23
µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
v mean µs sigma µs %
200 3156 25.21 0.7%
204 3125 21.41 0.6%
208 3193 24 0.7%
212 3265 33.04 1.0%
216 3359 28.82 0.8%
220 3430 17.22 0.5%
224 3412 26.78 0.7%
228 3504 22.68 0.6%
232 3546 22.35 0.6%
236 3651 30.95 0.8%
240 3600 25.16 0.6%
244 3745 31.11 0.8%
248 3748 25.99 0.6%
252 3903 35.63 0.9%
256 3930 42.13 1.0%
260 3927 37.45 0.9%
264 4065 22.91 0.5%
268 4165 58.11 1.3%
272 4128 28.35 0.6%
276 4287 38.87 0.9%
280 4204 22.94 0.5%
284 4445 23.28 0.5%
288 4411 67.68 1.5%
292 4630 56.52 1.2%
296 4508 53.3 1.1%
300 4679 47.09 1.0%
304 4710 80.47 1.7%
308 4788 36.36 0.7%
312 4860 53.75 1.1%
316 4954 35.54 0.7%
320 4788 33.61 0.7%
324 4998 34.45 0.6%
328 5008 61.75 1.2%
332 5079 60.2 1.1%
336 5195 56.69 1.0%
340 5306 26.53 0.5%
344 5396 25.98 0.4%
348 5148 32.9 0.6%
352 5458 49.18 0.9%
356 5262 51.91 0.9%
360 5672 27.08 0.4%
364 5700 54.31 0.9%
368 5787 62.14 1.0%
372 5541 44.3 0.7%
376 5810 56.16 0.9%
380 5848 51.31 0.8%
384 5846 53.17 0.9%
388 5917 41.71 0.7%
392 6138 52.43 0.8%
396 5920 28.32 0.4%
400 5982 27.31 0.4%

Quality and confidence:
param error
v 0.071

Model:
Time ~= 52.31
+ v 15.19
µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

…/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
@shawntabrizi
Copy link
Member Author

bot merge

@ghost
Copy link

ghost commented Jun 8, 2021

Trying merge.

@ghost ghost merged commit 07a1af3 into master Jun 8, 2021
@ghost ghost deleted the shawntabrizi-bond-event branch June 8, 2021 14:02
shawntabrizi added a commit that referenced this pull request Jun 17, 2021
* Emit `Bonded` event when rebonding

* fix borrow checker

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>
coriolinus added a commit that referenced this pull request Jun 18, 2021
* Remove: (#8748)

* `NetworkStatusSinks`
* `sc_service::SpawnTasksParams::network_status_sinks`

Also:
* `sc_service::build_network()` does not return `network_status_sinks`

* CI: fix simnet trigger (#8927)

* CI: chore

* CI: pin simnet version

* More sc-service config reexports (#8887)

* Reexport ExecutionStrategies and ExecutionStrategy

* Reexport more of the network

* Reexport the ExecutionStrategy as it's used within ExecutionStrategies

* Fix check runtime CI (#8930)

* Fix check_runtime.sh script

* contracts: Remove confusing "Related Modules" doc

* Bump parity-wasm and pwasm-utils to the newest versions everywhere (#8928)

* BROKEN: convert SignedSubmissions to BoundedBTreeSet

Eventually, once it works, this change should improve overall performance.
However, in the meantime, the trait bounds aren't playing nicely, and
this is turning into too much of a pain to handle right now as part of
/#7910. We can take care of it later.

* Simple `MaxBoundedLen` Implementations (#8793)

* implement max_values + storages info

* some formatting + doc

* sudo sanity check

* timestamp

* assets (not working)

* fix assets

* impl for proxy

* update balances

* rename StoragesInfo -> PalletStorageInfo

* merge both StorageInfoTrait and PalletStorageInfo

I think it is more future proof. In the future some storage could make
use of multiple prefix. Like one to store how much value has been
inserted, etc...

* Update frame/support/procedural/src/storage/parse.rs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* Update frame/support/procedural/src/storage/storage_struct.rs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* Fix max_size using hasher information

hasher now expose `max_len` which allows to computes their maximum len.
For hasher without concatenation, it is the size of the hash part,
for hasher with concatenation, it is the size of the hash part + max
encoded len of the key.

* fix tests

* fix ui tests

* Move `MaxBoundedLen` into its own crate (#8814)

* move MaxEncodedLen into its own crate

* remove MaxEncodedLen impl from frame-support

* add to assets and balances

* try more fixes

* fix compile

Co-authored-by: Shawn Tabrizi <[email protected]>

* nits

* fix compile

* line width

* fix max-values-macro merge

* Add some derive, needed for test and other purpose

* use weak bounded vec in some cases

* Update lib.rs

* move max-encoded-len crate

* fix

* remove app crypto for now

* width

* Revert "remove app crypto for now"

This reverts commit 73623e9.

* unused variable

* more unused variables

* more fixes

* Add #[max_encoded_len_crate(...)] helper attribute

The purpose of this attribute is to reduce the surface area of
max_encoded_len changes. Crates deriving `MaxEncodedLen` do not
need to add it to `Cargo.toml`; they can instead just do

```rust
\#[derive(Encode, MaxEncodedLen)]
\#[max_encoded_len_crate(frame_support::max_encoded_len)]
struct Example;
```

* fix a ui test

* use #[max_encoded_len_crate(...)] helper in app_crypto

* remove max_encoded_len import where not necessary

* update lockfile

* fix ui test

* ui

* newline

* fix merge

* try fix ui again

* Update max-encoded-len/derive/src/lib.rs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* extract generate_crate_access_2018

* Update lib.rs

* compiler isnt smart enough

Co-authored-by: thiolliere <[email protected]>
Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>
Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* remove duplicate Issued/Burned events (#8935)

* weather -> whether (#8938)

* make remote ext use batch ws-client (#8916)

* make remote ext use batch ws-client

* Add debug log for key length

* better assertions

* new sanity_checl

* try and make it work with batch

* update test

* remove exctra uri

* add missing at

* remove unused rpc stuff

* improve

Co-authored-by: emostov <[email protected]>

* Make `Schedule` fields public to allow for customization (#8924)

* Make `Schedule` fields public for customization

* Fix doc typo

Co-authored-by: Andrew Jones <[email protected]>

Co-authored-by: Andrew Jones <[email protected]>

* Session key should be settable at genesis even for non-endowed accounts (#8942)

* Session key should be settable at genesis even for non-endowed accounts

* Docs

* Migrate pallet-scored-pool to pallet attribute macro (#8825)

* Migrate pallet-scored-pool to pallet attribute macro.

* Remove dummy event.

* Apply review suggestions.

* Bump retain_mut from 0.1.2 to 0.1.3 (#8951)

Bumps [retain_mut](https://github.com/upsuper/retain_mut) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/upsuper/retain_mut/releases)
- [Commits](upsuper/retain_mut@v0.1.2...v0.1.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Use correct CreateInherentDataProviders impl for manual seal (#8852)

* use correct CreateInherentDataProviders impl for manual seal

* add babe inherent provider

* move client into factory fn

* Refactor code a little bit (#8932)

* Optimize `next_storage_key` (#8956)

* Optimize `next_storage_key`

- Do not rely on recursion
- Use an iterator over the overlay to not always call the same method

* Fix bug

* Add deserialize for TransactionValidityError in std. (#8961)

* Add deserialize for TransactionValidityError in std.

* Fix derives

* Bump getrandom from 0.2.2 to 0.2.3 (#8952)

Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](rust-random/getrandom@v0.2.2...v0.2.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Allow usage of path in construct_runtime! (#8801)

* Allow usage of path in construct_runtime!

* Fix whitespace

* Fix whitespace

* Make expand_runtime_metadata accept slice instead of Iterator

* Include Call and Event in construct_runtime for testing

* Migrate impl_outer_event to proc macro

* Fix integrity_test_works

* Update UI test expectations

* Factor in module path while generating enum variant or fn names

* Use ParseStream::lookahead for more helpful error messages

* Remove generating outer_event_metadata

* Ensure pallets with different paths but same last path segment can coexist

* Remove unnecessary generated function

* Migrate decl_outer_config to proc macro

* Add default_filter test for expand_outer_origin

* Allow crate, self and super keywords to appear in pallet path

* Add UI test for specifying empty pallet paths in construct_runtime

* Reduce cargo doc warnings (#8947)

Co-authored-by: Bastian Köcher <[email protected]>

* Update wasmtime to 0.27 (#8913)

* Update wasmtime to 0.27

A couple of notes:

- Now we are fair about unsafeness of runtime creation via an compiled artifact.
  This change was prompted by the change in wasmtime which made
  `deserialize` rightfully unsafe. Now `CodeSupplyMode` was hidden and
  the `create_runtime` now takes the blob again and there is now a new
  fn for creating a runtime with a compiled artifact.
- This is a big change for wasmtime. They switched to the modern backend
  for code generation. While this can bring performance improvements, it
  can also introduce some problems. In fact, 0.27 fixed a serious issue
  that could lead to sandbox escape. Hence we need a proper burn in.

This would require a change to PVF validation host as well.

* Filter regalloc logging

* Spellling corrections (no code changes) (#8971)

* Spelling corrections

* As this might break let's do as a separate PR

* Dependabot use correct label (#8973)

* Inject hashed prefix for remote-ext (#8960)

* Inject for remote-ext

* Update utils/frame/remote-externalities/src/lib.rs

Co-authored-by: Zeke Mostov <[email protected]>

* Update utils/frame/remote-externalities/src/lib.rs

Co-authored-by: Zeke Mostov <[email protected]>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Zeke Mostov <[email protected]>

* Use `SpawnTaskHandle`s for spawning tasks in the tx pool  (#8958)

* Remove futures-diagnose

* Use `SpawnTaskHandle`s for spawning tasks in the tx pool

* Box the spawner

* Fix tests

* Use the testing task executor

* Do not spend time on verifying the signatures before calling Runtime (#8980)

* Revert "Use `SpawnTaskHandle`s for spawning tasks in the tx pool  (#8958)" (#8983)

This reverts commit bfef07c.

* Uniques: An economically-secure basic-featured NFT pallet (#8813)

* Uniques: An economically-secure basic-featured NFT pallet

* force_transfer

* freeze/thaw

* team management

* approvals

* Fixes

* force_asset_status

* class_metadata

* instance metadata

* Fixes

* use nmap

* Fixes

* class metadata has information field

* Intiial mock/tests and a fix

* Remove impl_non_fungibles

* Docs

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Reserve, don't transfer.

* Fixes

* Tests

* Tests

* refresh_deposit

* Tests and proper handling of metdata destruction

* test burn

* Tests

* Update impl_fungibles.rs

* Initial benchmarking

* benchmark

* Fixes

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Attributes

* Attribute metadata

* Fixes

* Update frame/uniques/README.md

* Docs

* Docs

* Docs

* Simple metadata

* Use BoundedVec

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Fixes

* Update frame/uniques/README.md

Co-authored-by: Alexander Popiak <[email protected]>

* Update frame/uniques/README.md

Co-authored-by: Alexander Popiak <[email protected]>

* Update frame/uniques/README.md

Co-authored-by: Alexander Popiak <[email protected]>

* Docs

* Bump

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>

* Update WeakBoundedVec's remove and swap_remove (#8985)

Co-authored-by: Boiethios <[email protected]>

* Convert another instance of Into impl to From in the macros (#8986)

* Convert another instance of Into impl to From in the macros

* Convert another location

* also fix bounded vec (#8987)

* fix most compiler errors

Mostly the work so far has been in tracking down where precisely
to insert appropriate trait bounds, and updating `fn insert_submission`.
However, there's still a compiler error remaining:

```
error[E0275]: overflow evaluating the requirement `Compact<_>: Decode`
  |
  = help: consider adding a `#![recursion_limit="256"]` attribute to your crate (`pallet_election_provider_multi_phase`)
  = note: required because of the requirements on the impl of `Decode` for `Compact<_>`
  = note: 126 redundant requirements hidden
  = note: required because of the requirements on the impl of `Decode` for `Compact<_>`
```

Next up: figure out how we ended up with that recursive bound, and fix it.

* extract type SignedSubmissionsOf<T>

Weirdly, we still encounter the recursive trait definition error here,
despite removing the trait bounds. Something weird is happening.

* impl Decode bounds on BoundedBTreeMap/Set on T, not predecessor

Otherwise, Rust gets confused and decides that the trait bound is
infinitely recursive.

For that matter, it _still_ gets confused somehow and decides
that the trait bound is infinitely recursive, but at least
this should somewhat simplify the matter.

* fix recursive trait bound problem

* minor fixes

* more little fixes

* correct semantics for try_insert

* more fixes

* derive Ord for SolutionType

* tests compile

* fix most tests, rm unnecessary one

* Transactionpool: Make `ready_at` return earlier (#8995)

`ready_at` returns when we have processed the requested block. However,
on startup we already have processed the best block and there
are no transactions in the pool on startup anyway. So, we can set `updated_at`
to the best block on startup.

Besides that `ready_at` now returns early when there are no ready nor
any future transactions in the pool.

* Discard notifications if we have failed to parse handshake (#8806)

* Migrate pallet-democracy to pallet attribute macro (#8824)

* Migrate pallet-democracy to pallet attribute macro.

* Metadata fix.

* Trigger CI.

* Add ecdsa::Pair::verify_prehashed() (#8996)

* Add ecdsa::Pair::verify_prehashed()

* turn verify_prehashed() into an associated function

* add Signature::recover_prehashed()

* Non-fungible token traits (#8993)

* Non-fungible token traits

* Docs

* Fixes

* Implement non-fungible trait for Uniques

* Update frame/uniques/src/impl_nonfungibles.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/impl_nonfungibles.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

Co-authored-by: Shawn Tabrizi <[email protected]>

* Removes unused import (#9007)

* Add Call Filter That Prevents Nested `batch_all` (#9009)

* add filter preventing nested `batch_all`

* more tests

* fix test

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>

* Transaction pool: Ensure that we prune transactions properly (#8963)

* Transaction pool: Ensure that we prune transactions properly

There was a bug in the transaction pool that we didn't pruned
transactions properly because we called `prune_known`, instead of `prune`.

This bug was introduced by:
#4629

This is required to have stale extrinsics being removed properly, so
that they don't fill up the tx pool.

* Fix compilation

* Fix benches

* ...

* Storage chain: Runtime module (#8624)

* Transaction storage runtime module

* WIP: Tests

* Tests, benchmarks  and docs

* Made check_proof mandatory

* Typo

* Renamed a crate

* Apply suggestions from code review

Co-authored-by: Kian Paimani <[email protected]>

* Added weight for on_finalize

* Fixed counter mutations

* Reorganized tests

* Fixed build

* Update for the new inherent API

* Reworked for the new inherents API

* Apply suggestions from code review

Co-authored-by: cheme <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>

* Store transactions in a Vec

* Added FeeDestination

* Get rid of constants

* Fixed node runtime build

* Fixed benches

* Update frame/transaction-storage/src/lib.rs

Co-authored-by: cheme <[email protected]>

Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: cheme <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>

* more useful error message (#9014)

* Named reserve (#7778)

* add NamedReservableCurrency

* move currency related trait and types into a new file

* implement NamedReservableCurrency

* remove empty reserves

* Update frame/support/src/traits.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* fix build

* bump year

* add MaxReserves

* repatriate_reserved_named should put reserved fund into named reserved

* add tests

* add some docs

* fix warning

* Update lib.rs

* fix test

* fix test

* fix

* fix

* triggier CI

* Move NamedReservableCurrency.

* Use strongly bounded vec for reserves.

* Fix test.

* remove duplicated file

* trigger CI

* Make `ReserveIdentifier` assosicated type

* add helpers

* make ReserveIdentifier assosicated type

* fix

* update

* trigger CI

* Apply suggestions from code review

Co-authored-by: Shawn Tabrizi <[email protected]>

* trigger CI

* Apply suggestions from code review

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Shaun Wang <[email protected]>

* update ss58 type to u16 (#8955)

* Fixed build (#9021)

* Bump parity-db (#9024)

* consensus: handle justification sync for blocks authored locally (#8698)

* consensus: add trait to control justification sync process

* network: implement JustificationSyncLink for NetworkService

* slots: handle justification sync in slot worker

* babe: fix slot worker instantiation

* aura: fix slot worker instantiation

* pow: handle justification sync in miner

* babe: fix tests

* aura: fix tests

* node: fix compilation

* node-template: fix compilation

* consensus: rename justification sync link parameter

* aura: fix test compilation

* consensus: slots: move JustificationSyncLink out of on_slot

* arithmetic: fix PerThing pow (#9030)

* arithmetic: add failing test for pow

* arithmetic: fix PerThing::pow

* Revert back to previous optimisations

Co-authored-by: Gav Wood <[email protected]>

* Compact proof utilities in sp_trie. (#8574)

* validation extension in sp_io

* need paths

* arc impl

* missing host function in executor

* io to pkdot

* decode function.

* encode primitive.

* trailing tab

* multiple patch

* fix child trie logic

* restore master versionning

* bench compact proof size

* trie-db 22.3 is needed

* line width

* split line

* fixes for bench (additional root may not be needed as original issue was
with empty proof).

* revert compact from block size calculation.

* New error type for compression.

* Adding test (incomplete (failing)).
Also lacking real proof checking (no good primitives in sp-trie crate).

* There is currently no proof recording utility in sp_trie, removing
test.

* small test of child root in proof without a child proof.

* remove empty test.

* remove non compact proof size

* Missing revert.

* proof method to encode decode.

* Don't inlucde nominaotrs that back no one in the snapshot. (#9017)

* fix all_in_one test which had a logic error

* use sp_std, not std

* Periodically call `Peerset::alloc_slots` on all sets (#9025)

* Periodically call alloc_slots on all slots

* Add test

* contracts: Add new `seal_call` that offers new features (#8909)

* Add new `seal_call` that offers new features

* Fix doc typo

Co-authored-by: Michael Müller <[email protected]>

* Fix doc typos

Co-authored-by: Michael Müller <[email protected]>

* Fix comment on assert

* Update CHANGELOG.md

Co-authored-by: Michael Müller <[email protected]>

* fix unreserve_all_named (#9042)

* Delete legacy runtime metadata macros (#9043)

* `rpc-http-threads` cli arg (#8890)

* Add optional `rpc-http-threads` cli arg

* Update `http::ServerBuilder`threads

* allow inserting equal items into bounded map/set

* refactor: only load one solution at a time

This increases the database read load, because we read one solution
at a time. On the other hand, it substantially decreases the overall
memory load, because we _only_ read one solution at a time instead
of reading all of them.

* Emit `Bonded` event when rebonding (#9040)

* Emit `Bonded` event when rebonding

* fix borrow checker

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>

* fix tests

* Revert "Merge remote-tracking branch 'origin/master' into prgn-election-provider-multi-phase-bounded-btree-set-signed-submissions"

This reverts commit de92b1e, reversing
changes made to dae31f2.

* only derive debug when std

* write after check

* SignedSubmissions doesn't ever modify storage until .put()

This makes a true check-before-write pattern possible.

* REVERT ME: demo that Drop impl doesn't work

* Revert "REVERT ME: demo that Drop impl doesn't work"

This reverts commit 3317a4b.

* doc note about decode_len

* rename get_submission, take_submission for clarity

* add test which fails for current incorrect behavior

* inline fn insert_submission

This fixes a tricky check-before-write error, ensuring that we
really only ever modify anything if we have in fact succeeded.

Co-authored-by: Roman Proskuryakov <[email protected]>
Co-authored-by: Denis Pisarev <[email protected]>
Co-authored-by: MOZGIII <[email protected]>
Co-authored-by: Alexander Theißen <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: thiolliere <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: Sebastian Müller <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: emostov <[email protected]>
Co-authored-by: Andrew Jones <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Shaun Wang <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seun Lanlege <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Keith Yeung <[email protected]>
Co-authored-by: Squirrel <[email protected]>
Co-authored-by: Sergei Shulepov <[email protected]>
Co-authored-by: Ashley <[email protected]>
Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Boiethios <[email protected]>
Co-authored-by: Boiethios <[email protected]>
Co-authored-by: Pierre Krieger <[email protected]>
Co-authored-by: Andreas Doerr <[email protected]>
Co-authored-by: Dmitry Kashitsyn <[email protected]>
Co-authored-by: Arkadiy Paronyan <[email protected]>
Co-authored-by: cheme <[email protected]>
Co-authored-by: Andronik Ordian <[email protected]>
Co-authored-by: Xiliang Chen <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Jakub Pánik <[email protected]>
Co-authored-by: André Silva <[email protected]>
Co-authored-by: Michael Müller <[email protected]>
Co-authored-by: tgmichel <[email protected]>
ghost pushed a commit that referenced this pull request Jun 28, 2021
* Base features and traits.

* pallet and unsigned phase

* add signed phase.

* remove comments

* Undo bad formattings.

* some formatting cleanup.

* Small self-cleanup.

* Add todo

* Make it all build

* self-review

* Some doc tests.

* Some changes from other PR

* Fix session test

* Update bin/node/runtime/src/lib.rs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* Fix name.

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* typos and verbiage

* no glob imports in signed.rs

* meaningful generic type parameters for SignedSubmission

* dedup feasibility check weight calculation

* simplify/optimize fn insert_submission

* tests: remove glob, cause to build without error

* use sp_std::vec::Vec

* maintain invariant within fn insert_submission

* fix accidentally ordering the list backward

* intentionally order the list in reverse

* get rid of unused import

* ensure signed submissions are cleared in early elect

* finalize the signed phase when appropriate

- ensure we don't leave storage lying around, even if elect called prematurely
- test that proposition
- disable the unsigned phase if a viable solution from the signed phase exists
- ensure signed phase finalization weight is accounted for

* resolve dispatch error todo

* update assumptions in submit benchmark

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* line length

* make a few more things pub

* restore missing import

* update ui test output

* update tests from master branch

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* remove duplicate definitions

* remove signed reward factor due to its attack potential

* Update frame/election-provider-multi-phase/src/signed.rs

Co-authored-by: Kian Paimani <[email protected]>

* remove SignedRewardMax; no longer necessary

* compute the encoded size without actually encoding

* remove unused PostInfo

* pub use some stuff

Co-authored-by: Kian Paimani <[email protected]>

* ensure `pub use` things are in fact `pub`

* add event information: was another solution ejected to make room

* unconditionally run the unsigned phase even if signed was successful

* remove dead test code

* meaningful witness data name

* use errors instead of defensive `unwrap_or_default`

* get rid of a log message redundant with an event

* saturating math

Co-authored-by: Shawn Tabrizi <[email protected]>

* import Saturating

* mv `fn submit` to end of call

* add log line

* Use a better data structure for SignedSubmissions instead of Vec (#8933)

* Remove: (#8748)

* `NetworkStatusSinks`
* `sc_service::SpawnTasksParams::network_status_sinks`

Also:
* `sc_service::build_network()` does not return `network_status_sinks`

* CI: fix simnet trigger (#8927)

* CI: chore

* CI: pin simnet version

* More sc-service config reexports (#8887)

* Reexport ExecutionStrategies and ExecutionStrategy

* Reexport more of the network

* Reexport the ExecutionStrategy as it's used within ExecutionStrategies

* Fix check runtime CI (#8930)

* Fix check_runtime.sh script

* contracts: Remove confusing "Related Modules" doc

* Bump parity-wasm and pwasm-utils to the newest versions everywhere (#8928)

* BROKEN: convert SignedSubmissions to BoundedBTreeSet

Eventually, once it works, this change should improve overall performance.
However, in the meantime, the trait bounds aren't playing nicely, and
this is turning into too much of a pain to handle right now as part of
/#7910. We can take care of it later.

* Simple `MaxBoundedLen` Implementations (#8793)

* implement max_values + storages info

* some formatting + doc

* sudo sanity check

* timestamp

* assets (not working)

* fix assets

* impl for proxy

* update balances

* rename StoragesInfo -> PalletStorageInfo

* merge both StorageInfoTrait and PalletStorageInfo

I think it is more future proof. In the future some storage could make
use of multiple prefix. Like one to store how much value has been
inserted, etc...

* Update frame/support/procedural/src/storage/parse.rs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* Update frame/support/procedural/src/storage/storage_struct.rs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* Fix max_size using hasher information

hasher now expose `max_len` which allows to computes their maximum len.
For hasher without concatenation, it is the size of the hash part,
for hasher with concatenation, it is the size of the hash part + max
encoded len of the key.

* fix tests

* fix ui tests

* Move `MaxBoundedLen` into its own crate (#8814)

* move MaxEncodedLen into its own crate

* remove MaxEncodedLen impl from frame-support

* add to assets and balances

* try more fixes

* fix compile

Co-authored-by: Shawn Tabrizi <[email protected]>

* nits

* fix compile

* line width

* fix max-values-macro merge

* Add some derive, needed for test and other purpose

* use weak bounded vec in some cases

* Update lib.rs

* move max-encoded-len crate

* fix

* remove app crypto for now

* width

* Revert "remove app crypto for now"

This reverts commit 73623e9.

* unused variable

* more unused variables

* more fixes

* Add #[max_encoded_len_crate(...)] helper attribute

The purpose of this attribute is to reduce the surface area of
max_encoded_len changes. Crates deriving `MaxEncodedLen` do not
need to add it to `Cargo.toml`; they can instead just do

```rust
\#[derive(Encode, MaxEncodedLen)]
\#[max_encoded_len_crate(frame_support::max_encoded_len)]
struct Example;
```

* fix a ui test

* use #[max_encoded_len_crate(...)] helper in app_crypto

* remove max_encoded_len import where not necessary

* update lockfile

* fix ui test

* ui

* newline

* fix merge

* try fix ui again

* Update max-encoded-len/derive/src/lib.rs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* extract generate_crate_access_2018

* Update lib.rs

* compiler isnt smart enough

Co-authored-by: thiolliere <[email protected]>
Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>
Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

* remove duplicate Issued/Burned events (#8935)

* weather -> whether (#8938)

* make remote ext use batch ws-client (#8916)

* make remote ext use batch ws-client

* Add debug log for key length

* better assertions

* new sanity_checl

* try and make it work with batch

* update test

* remove exctra uri

* add missing at

* remove unused rpc stuff

* improve

Co-authored-by: emostov <[email protected]>

* Make `Schedule` fields public to allow for customization (#8924)

* Make `Schedule` fields public for customization

* Fix doc typo

Co-authored-by: Andrew Jones <[email protected]>

Co-authored-by: Andrew Jones <[email protected]>

* Session key should be settable at genesis even for non-endowed accounts (#8942)

* Session key should be settable at genesis even for non-endowed accounts

* Docs

* Migrate pallet-scored-pool to pallet attribute macro (#8825)

* Migrate pallet-scored-pool to pallet attribute macro.

* Remove dummy event.

* Apply review suggestions.

* Bump retain_mut from 0.1.2 to 0.1.3 (#8951)

Bumps [retain_mut](https://github.com/upsuper/retain_mut) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/upsuper/retain_mut/releases)
- [Commits](upsuper/retain_mut@v0.1.2...v0.1.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Use correct CreateInherentDataProviders impl for manual seal (#8852)

* use correct CreateInherentDataProviders impl for manual seal

* add babe inherent provider

* move client into factory fn

* Refactor code a little bit (#8932)

* Optimize `next_storage_key` (#8956)

* Optimize `next_storage_key`

- Do not rely on recursion
- Use an iterator over the overlay to not always call the same method

* Fix bug

* Add deserialize for TransactionValidityError in std. (#8961)

* Add deserialize for TransactionValidityError in std.

* Fix derives

* Bump getrandom from 0.2.2 to 0.2.3 (#8952)

Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](rust-random/getrandom@v0.2.2...v0.2.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Allow usage of path in construct_runtime! (#8801)

* Allow usage of path in construct_runtime!

* Fix whitespace

* Fix whitespace

* Make expand_runtime_metadata accept slice instead of Iterator

* Include Call and Event in construct_runtime for testing

* Migrate impl_outer_event to proc macro

* Fix integrity_test_works

* Update UI test expectations

* Factor in module path while generating enum variant or fn names

* Use ParseStream::lookahead for more helpful error messages

* Remove generating outer_event_metadata

* Ensure pallets with different paths but same last path segment can coexist

* Remove unnecessary generated function

* Migrate decl_outer_config to proc macro

* Add default_filter test for expand_outer_origin

* Allow crate, self and super keywords to appear in pallet path

* Add UI test for specifying empty pallet paths in construct_runtime

* Reduce cargo doc warnings (#8947)

Co-authored-by: Bastian Köcher <[email protected]>

* Update wasmtime to 0.27 (#8913)

* Update wasmtime to 0.27

A couple of notes:

- Now we are fair about unsafeness of runtime creation via an compiled artifact.
  This change was prompted by the change in wasmtime which made
  `deserialize` rightfully unsafe. Now `CodeSupplyMode` was hidden and
  the `create_runtime` now takes the blob again and there is now a new
  fn for creating a runtime with a compiled artifact.
- This is a big change for wasmtime. They switched to the modern backend
  for code generation. While this can bring performance improvements, it
  can also introduce some problems. In fact, 0.27 fixed a serious issue
  that could lead to sandbox escape. Hence we need a proper burn in.

This would require a change to PVF validation host as well.

* Filter regalloc logging

* Spellling corrections (no code changes) (#8971)

* Spelling corrections

* As this might break let's do as a separate PR

* Dependabot use correct label (#8973)

* Inject hashed prefix for remote-ext (#8960)

* Inject for remote-ext

* Update utils/frame/remote-externalities/src/lib.rs

Co-authored-by: Zeke Mostov <[email protected]>

* Update utils/frame/remote-externalities/src/lib.rs

Co-authored-by: Zeke Mostov <[email protected]>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Zeke Mostov <[email protected]>

* Use `SpawnTaskHandle`s for spawning tasks in the tx pool  (#8958)

* Remove futures-diagnose

* Use `SpawnTaskHandle`s for spawning tasks in the tx pool

* Box the spawner

* Fix tests

* Use the testing task executor

* Do not spend time on verifying the signatures before calling Runtime (#8980)

* Revert "Use `SpawnTaskHandle`s for spawning tasks in the tx pool  (#8958)" (#8983)

This reverts commit bfef07c.

* Uniques: An economically-secure basic-featured NFT pallet (#8813)

* Uniques: An economically-secure basic-featured NFT pallet

* force_transfer

* freeze/thaw

* team management

* approvals

* Fixes

* force_asset_status

* class_metadata

* instance metadata

* Fixes

* use nmap

* Fixes

* class metadata has information field

* Intiial mock/tests and a fix

* Remove impl_non_fungibles

* Docs

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Reserve, don't transfer.

* Fixes

* Tests

* Tests

* refresh_deposit

* Tests and proper handling of metdata destruction

* test burn

* Tests

* Update impl_fungibles.rs

* Initial benchmarking

* benchmark

* Fixes

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Attributes

* Attribute metadata

* Fixes

* Update frame/uniques/README.md

* Docs

* Docs

* Docs

* Simple metadata

* Use BoundedVec

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Update frame/uniques/src/lib.rs

Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

* Fixes

* Update frame/uniques/README.md

Co-authored-by: Alexander Popiak <[email protected]>

* Update frame/uniques/README.md

Co-authored-by: Alexander Popiak <[email protected]>

* Update frame/uniques/README.md

Co-authored-by: Alexander Popiak <[email protected]>

* Docs

* Bump

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>

* Update WeakBoundedVec's remove and swap_remove (#8985)

Co-authored-by: Boiethios <[email protected]>

* Convert another instance of Into impl to From in the macros (#8986)

* Convert another instance of Into impl to From in the macros

* Convert another location

* also fix bounded vec (#8987)

* fix most compiler errors

Mostly the work so far has been in tracking down where precisely
to insert appropriate trait bounds, and updating `fn insert_submission`.
However, there's still a compiler error remaining:

```
error[E0275]: overflow evaluating the requirement `Compact<_>: Decode`
  |
  = help: consider adding a `#![recursion_limit="256"]` attribute to your crate (`pallet_election_provider_multi_phase`)
  = note: required because of the requirements on the impl of `Decode` for `Compact<_>`
  = note: 126 redundant requirements hidden
  = note: required because of the requirements on the impl of `Decode` for `Compact<_>`
```

Next up: figure out how we ended up with that recursive bound, and fix it.

* extract type SignedSubmissionsOf<T>

Weirdly, we still encounter the recursive trait definition error here,
despite removing the trait bounds. Something weird is happening.

* impl Decode bounds on BoundedBTreeMap/Set on T, not predecessor

Otherwise, Rust gets confused and decides that the trait bound is
infinitely recursive.

For that matter, it _still_ gets confused somehow and decides
that the trait bound is infinitely recursive, but at least
this should somewhat simplify the matter.

* fix recursive trait bound problem

* minor fixes

* more little fixes

* correct semantics for try_insert

* more fixes

* derive Ord for SolutionType

* tests compile

* fix most tests, rm unnecessary one

* Transactionpool: Make `ready_at` return earlier (#8995)

`ready_at` returns when we have processed the requested block. However,
on startup we already have processed the best block and there
are no transactions in the pool on startup anyway. So, we can set `updated_at`
to the best block on startup.

Besides that `ready_at` now returns early when there are no ready nor
any future transactions in the pool.

* Discard notifications if we have failed to parse handshake (#8806)

* Migrate pallet-democracy to pallet attribute macro (#8824)

* Migrate pallet-democracy to pallet attribute macro.

* Metadata fix.

* Trigger CI.

* Add ecdsa::Pair::verify_prehashed() (#8996)

* Add ecdsa::Pair::verify_prehashed()

* turn verify_prehashed() into an associated function

* add Signature::recover_prehashed()

* Non-fungible token traits (#8993)

* Non-fungible token traits

* Docs

* Fixes

* Implement non-fungible trait for Uniques

* Update frame/uniques/src/impl_nonfungibles.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* Update frame/uniques/src/impl_nonfungibles.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

Co-authored-by: Shawn Tabrizi <[email protected]>

* Removes unused import (#9007)

* Add Call Filter That Prevents Nested `batch_all` (#9009)

* add filter preventing nested `batch_all`

* more tests

* fix test

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>

* Transaction pool: Ensure that we prune transactions properly (#8963)

* Transaction pool: Ensure that we prune transactions properly

There was a bug in the transaction pool that we didn't pruned
transactions properly because we called `prune_known`, instead of `prune`.

This bug was introduced by:
#4629

This is required to have stale extrinsics being removed properly, so
that they don't fill up the tx pool.

* Fix compilation

* Fix benches

* ...

* Storage chain: Runtime module (#8624)

* Transaction storage runtime module

* WIP: Tests

* Tests, benchmarks  and docs

* Made check_proof mandatory

* Typo

* Renamed a crate

* Apply suggestions from code review

Co-authored-by: Kian Paimani <[email protected]>

* Added weight for on_finalize

* Fixed counter mutations

* Reorganized tests

* Fixed build

* Update for the new inherent API

* Reworked for the new inherents API

* Apply suggestions from code review

Co-authored-by: cheme <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>

* Store transactions in a Vec

* Added FeeDestination

* Get rid of constants

* Fixed node runtime build

* Fixed benches

* Update frame/transaction-storage/src/lib.rs

Co-authored-by: cheme <[email protected]>

Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: cheme <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>

* more useful error message (#9014)

* Named reserve (#7778)

* add NamedReservableCurrency

* move currency related trait and types into a new file

* implement NamedReservableCurrency

* remove empty reserves

* Update frame/support/src/traits.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* fix build

* bump year

* add MaxReserves

* repatriate_reserved_named should put reserved fund into named reserved

* add tests

* add some docs

* fix warning

* Update lib.rs

* fix test

* fix test

* fix

* fix

* triggier CI

* Move NamedReservableCurrency.

* Use strongly bounded vec for reserves.

* Fix test.

* remove duplicated file

* trigger CI

* Make `ReserveIdentifier` assosicated type

* add helpers

* make ReserveIdentifier assosicated type

* fix

* update

* trigger CI

* Apply suggestions from code review

Co-authored-by: Shawn Tabrizi <[email protected]>

* trigger CI

* Apply suggestions from code review

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Shaun Wang <[email protected]>

* update ss58 type to u16 (#8955)

* Fixed build (#9021)

* Bump parity-db (#9024)

* consensus: handle justification sync for blocks authored locally (#8698)

* consensus: add trait to control justification sync process

* network: implement JustificationSyncLink for NetworkService

* slots: handle justification sync in slot worker

* babe: fix slot worker instantiation

* aura: fix slot worker instantiation

* pow: handle justification sync in miner

* babe: fix tests

* aura: fix tests

* node: fix compilation

* node-template: fix compilation

* consensus: rename justification sync link parameter

* aura: fix test compilation

* consensus: slots: move JustificationSyncLink out of on_slot

* arithmetic: fix PerThing pow (#9030)

* arithmetic: add failing test for pow

* arithmetic: fix PerThing::pow

* Revert back to previous optimisations

Co-authored-by: Gav Wood <[email protected]>

* Compact proof utilities in sp_trie. (#8574)

* validation extension in sp_io

* need paths

* arc impl

* missing host function in executor

* io to pkdot

* decode function.

* encode primitive.

* trailing tab

* multiple patch

* fix child trie logic

* restore master versionning

* bench compact proof size

* trie-db 22.3 is needed

* line width

* split line

* fixes for bench (additional root may not be needed as original issue was
with empty proof).

* revert compact from block size calculation.

* New error type for compression.

* Adding test (incomplete (failing)).
Also lacking real proof checking (no good primitives in sp-trie crate).

* There is currently no proof recording utility in sp_trie, removing
test.

* small test of child root in proof without a child proof.

* remove empty test.

* remove non compact proof size

* Missing revert.

* proof method to encode decode.

* Don't inlucde nominaotrs that back no one in the snapshot. (#9017)

* fix all_in_one test which had a logic error

* use sp_std, not std

* Periodically call `Peerset::alloc_slots` on all sets (#9025)

* Periodically call alloc_slots on all slots

* Add test

* contracts: Add new `seal_call` that offers new features (#8909)

* Add new `seal_call` that offers new features

* Fix doc typo

Co-authored-by: Michael Müller <[email protected]>

* Fix doc typos

Co-authored-by: Michael Müller <[email protected]>

* Fix comment on assert

* Update CHANGELOG.md

Co-authored-by: Michael Müller <[email protected]>

* fix unreserve_all_named (#9042)

* Delete legacy runtime metadata macros (#9043)

* `rpc-http-threads` cli arg (#8890)

* Add optional `rpc-http-threads` cli arg

* Update `http::ServerBuilder`threads

* allow inserting equal items into bounded map/set

* refactor: only load one solution at a time

This increases the database read load, because we read one solution
at a time. On the other hand, it substantially decreases the overall
memory load, because we _only_ read one solution at a time instead
of reading all of them.

* Emit `Bonded` event when rebonding (#9040)

* Emit `Bonded` event when rebonding

* fix borrow checker

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>

* fix tests

* Revert "Merge remote-tracking branch 'origin/master' into prgn-election-provider-multi-phase-bounded-btree-set-signed-submissions"

This reverts commit de92b1e, reversing
changes made to dae31f2.

* only derive debug when std

* write after check

* SignedSubmissions doesn't ever modify storage until .put()

This makes a true check-before-write pattern possible.

* REVERT ME: demo that Drop impl doesn't work

* Revert "REVERT ME: demo that Drop impl doesn't work"

This reverts commit 3317a4b.

* doc note about decode_len

* rename get_submission, take_submission for clarity

* add test which fails for current incorrect behavior

* inline fn insert_submission

This fixes a tricky check-before-write error, ensuring that we
really only ever modify anything if we have in fact succeeded.

Co-authored-by: Roman Proskuryakov <[email protected]>
Co-authored-by: Denis Pisarev <[email protected]>
Co-authored-by: MOZGIII <[email protected]>
Co-authored-by: Alexander Theißen <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: thiolliere <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: Sebastian Müller <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: emostov <[email protected]>
Co-authored-by: Andrew Jones <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Shaun Wang <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seun Lanlege <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Keith Yeung <[email protected]>
Co-authored-by: Squirrel <[email protected]>
Co-authored-by: Sergei Shulepov <[email protected]>
Co-authored-by: Ashley <[email protected]>
Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Boiethios <[email protected]>
Co-authored-by: Boiethios <[email protected]>
Co-authored-by: Pierre Krieger <[email protected]>
Co-authored-by: Andreas Doerr <[email protected]>
Co-authored-by: Dmitry Kashitsyn <[email protected]>
Co-authored-by: Arkadiy Paronyan <[email protected]>
Co-authored-by: cheme <[email protected]>
Co-authored-by: Andronik Ordian <[email protected]>
Co-authored-by: Xiliang Chen <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Jakub Pánik <[email protected]>
Co-authored-by: André Silva <[email protected]>
Co-authored-by: Michael Müller <[email protected]>
Co-authored-by: tgmichel <[email protected]>

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* remove duplicate weight definitions injected by benchmark bot

* check deletion overlay before getting

* clarify non-conflict between delete, insert overlays

* drain can be used wrong so is private

* update take_submission docs

* more drain improvements

* more take_submission docs

* debug assertion helps prove expectation is valid

* doc on changing SignedMaxSubmissions

* take_submission inner doc on system properties

* Apply suggestions from code review

Co-authored-by: Zeke Mostov <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>

* get SolutionOrSnapshotSize out of the loop

Co-authored-by: Zeke Mostov <[email protected]>

* doc which items comprise `SignedSubmissions`

* add doc about index as unique identifier

* Add debug assertions to prove drain worked properly

Co-authored-by: Kian Paimani <[email protected]>

* replace take_submission with swap_out_submission

* use a match to demonstrate all cases from signed_submissions.insert

* refactor signed_submissions.insert return type

* prettify test assertion

Co-authored-by: Kian Paimani <[email protected]>

* improve docs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* add tests that finalize_signed_phase is idempotent

* add some debug assertions to guard against misuse of storage

* log internal logic errors instead of panicing

* don't store the reward with each signed submission

The signed reward base can be treated as a constant. It can in principle
change, but even if it's updated in the middle of an election, it's
appropriate to use the current value for the winner.

* emit Rewarded, Slashed events as appropriate

Makes it easier to see who won/lost with signed submissions.

* update docs

* use a custom enum to be explicit about the outcome of insertion

* remove outdated docs

Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>
Co-authored-by: Parity Benchmarking Bot <[email protected]>
Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Roman Proskuryakov <[email protected]>
Co-authored-by: Denis Pisarev <[email protected]>
Co-authored-by: MOZGIII <[email protected]>
Co-authored-by: Alexander Theißen <[email protected]>
Co-authored-by: thiolliere <[email protected]>
Co-authored-by: joe petrowski <[email protected]>
Co-authored-by: Sebastian Müller <[email protected]>
Co-authored-by: emostov <[email protected]>
Co-authored-by: Andrew Jones <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Shaun Wang <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seun Lanlege <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Keith Yeung <[email protected]>
Co-authored-by: Squirrel <[email protected]>
Co-authored-by: Sergei Shulepov <[email protected]>
Co-authored-by: Ashley <[email protected]>
Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Boiethios <[email protected]>
Co-authored-by: Boiethios <[email protected]>
Co-authored-by: Pierre Krieger <[email protected]>
Co-authored-by: Andreas Doerr <[email protected]>
Co-authored-by: Dmitry Kashitsyn <[email protected]>
Co-authored-by: Arkadiy Paronyan <[email protected]>
Co-authored-by: cheme <[email protected]>
Co-authored-by: Andronik Ordian <[email protected]>
Co-authored-by: Xiliang Chen <[email protected]>
Co-authored-by: Gavin Wood <[email protected]>
Co-authored-by: Jakub Pánik <[email protected]>
Co-authored-by: André Silva <[email protected]>
Co-authored-by: Michael Müller <[email protected]>
Co-authored-by: tgmichel <[email protected]>
AurevoirXavier pushed a commit to darwinia-network/substrate that referenced this pull request Sep 2, 2021
commit 9c572625f6557dfdb19f47474369a0327d51dfbc
Author: Shawn Tabrizi <[email protected]>
Date:   Fri Jun 18 09:24:50 2021 +0100

    fix build

commit 87e38e45d5c0dba66f0a4e95f4606b5179b4333f
Author: Kian Paimani <[email protected]>
Date:   Thu Jun 17 16:37:43 2021 +0200

    Make it possible to override maximum payload of RPC (#9019)

    * Make it possible to override maximum payload of RPC

    * Finish it.

    * remove todo.

    * Update client/cli/src/commands/run_cmd.rs

    * Apply suggestions from code review

    Co-authored-by: David <[email protected]>

    * Apply suggestions from code review

    Co-authored-by: David <[email protected]>

    * Incorporate suggestions

    * Thread rpc_max_payload from configuration to trace_block

    * Try obey line gitlab/check_line_width.sh

    * update state rpc tests

    * Improve readbility

    * Apply suggestions from code review

    * Apply suggestions from code review

    Co-authored-by: Bastian Köcher <[email protected]>
    Co-authored-by: Zeke Mostov <[email protected]>
    Co-authored-by: David <[email protected]>

commit 811cbb821c08f34167ecca7cc54921fb18a771b4
Author: Shawn Tabrizi <[email protected]>
Date:   Wed Jun 16 15:19:10 2021 +0100

    Make backwards compatible with CountedMap (#9126)

commit 8fb89f411469adba41f846fc268f68726d45788c
Author: Shawn Tabrizi <[email protected]>
Date:   Wed Jun 16 05:57:14 2021 +0100

    Merge 8920

commit 159a5aade9a6104fa70779a38a326b2cddc69da3
Author: Kian Paimani <[email protected]>
Date:   Thu Jun 17 18:01:27 2021 +0200

    double the allocator limit (#9102)

    * double the allocator limit

    * 32 MiB should be enough for everybody.

    * Update doc

    Co-authored-by: Sergei Shulepov <[email protected]>

commit 3bb42b9aaba65e956aea7aaef2c2fb3468fa3aaf
Author: Bastian Köcher <[email protected]>
Date:   Thu Jun 17 09:27:53 2021 +0200

    Aura: Skip initialize block & remove cache (#9132)

    This instructs the Aura runtime api to skip initialize block, when
    requesting the authorities. This is important, as we don't want to use
    the new authorities that should be used from the next block on.
    Besides that, it removes the caching stuff. The cache is not available
    on full nodes anyway. In the future we should store the authorities
    probably in the aux store.

commit c666a251691300c1651075a3b59ba1cf59c5a664
Author: Guillaume Thiolliere <[email protected]>
Date:   Mon Jun 14 16:02:45 2021 +0200

    staking/election: prolonged era and emergency mode for governance submission. (#8912)

    * Implementation but weird initial era in tests

    * Emergency mode for elections. (#8918)

    * do some testing, some logging.

    * some testing apparatus

    * genesis election provider (#8970)

    * genesis election provider

    * fix historical stuff

    * Fix test

    * remove dbg

    * Apply suggestions from code review

    Co-authored-by: Zeke Mostov <[email protected]>
    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

    * capitalize comment and name without conflict

    * fix log

    * Update frame/election-provider-multi-phase/src/lib.rs

    * Update frame/election-provider-multi-phase/src/lib.rs

    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

    * apply suggestion on tests

    * remove testing modifications

    * Apply suggestions from code review

    Co-authored-by: Kian Paimani <[email protected]>
    Co-authored-by: Dmitry Kashitsyn <[email protected]>

    * apply suggestion

    * fix master merge

    Co-authored-by: kianenigma <[email protected]>
    Co-authored-by: Kian Paimani <[email protected]>
    Co-authored-by: Zeke Mostov <[email protected]>
    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>
    Co-authored-by: Dmitry Kashitsyn <[email protected]>

commit ea960d6c5350f381f4748b628079691794055610
Author: h4x3rotab <[email protected]>
Date:   Mon Jun 14 19:22:39 2021 +0800

    Improve construct_runtime doc (#9096)

    - Mention when the pallet definition parts are needed
    - Rename "module" to "pallet"

commit a4b0fd8fa5939879e5a3f9a1a009323ccb4d4a30
Author: Qinxuan Chen <[email protected]>
Date:   Mon Jun 14 19:00:32 2021 +0800

    Migrate pallet-randomness-collective-flip to pallet attribute macro (#9061)

    * migrate pallet-randomness-collective-flip to pallet attribute macro

    Signed-off-by: koushiro <[email protected]>

    * fix some nits

    Signed-off-by: koushiro <[email protected]>

    * remove some spacing things

    Signed-off-by: koushiro <[email protected]>

    * remove space

    Signed-off-by: koushiro <[email protected]>

    * use tabs

    Signed-off-by: koushiro <[email protected]>

commit a7b641fc25d8d157b2dddccb7f459c4f166596e2
Author: Keith Yeung <[email protected]>
Date:   Mon Jun 14 03:07:09 2021 -0700

    Allow renaming storage item prefixes (#9016)

    * Implement parsing for #[pallet::storage_name] on storage items

    * Rename storage prefix when a #[pallet::storage_name] is supplied

    * Fix test_storage_info

    * Rename storage_name to storage_prefix

    * Check for duplicates when renaming storage prefixes

    * Allow only string literals for storage_prefix renames

    * Use proper spans for attribute errors

    * Check for valid identifiers when parsing storage prefix renames

commit f4cccc08110bd1c516f2dcc6fe86682cb6118184
Author: Peter Goodspeed-Niklaus <[email protected]>
Date:   Mon Jun 14 09:16:14 2021 +0200

    fix ordering of staking weight arguments (#9063)

    Closes #9054.

commit 6b3c76a23ed18c5d4f2149edebd85063a85a8218
Author: Bastian Köcher <[email protected]>
Date:   Sun Jun 13 12:41:13 2021 +0100

    pallet-authorship: Fixing some nitpicks (#9095)

    As reviewing the pallet yesterday, I have found some nitpicks that I
    fixed.

commit 125c4b365f21e60e3d284e3c73cbf0585bfc7342
Author: chenwei <[email protected]>
Date:   Sun Jun 13 18:27:54 2021 +0800

    Make find_proxy public. (#9094)

    export `pallet_proxy::find_prox` and `ProxyDefinition`.

commit 11d5eff647a54a70e87f805b3dabca458faca283
Author: Lldenaurois <[email protected]>
Date:   Sun Jun 13 06:24:05 2021 -0400

    Add function to test whether function is exported in wasm blob (#9093)

    * Add function to test whether function is exported in wasm blob

    * Address Feedback

    * Update based on feedback

commit c8d5796ae2b0ee5c71e2ee585fc05b3fa94ac84f
Author: Xiliang Chen <[email protected]>
Date:   Sun Jun 13 18:26:42 2021 +1200

    remove Default from AssetId trait bound (#9062)

    * update AssetId trait

    * try again

commit 3a41701a675b81a264cccf6b2771bfff74f6674a
Author: Andrew Jones <[email protected]>
Date:   Sun Jun 13 01:36:36 2021 +0100

     Allow additional trait bounds for `#[pallet::constant]`  (#9050)

    * Allow additional trait bounds for constants

    * Add ui test for constants with additional trait bounds

    * Update trait constant ui test

    * Import syn::Error

    * Use reference instead of cloning

    * Add extra invalid bound ui test

    * Out or order valid bounds

    * Fix ui test

    * Fix ui test

    * Apply review suggestion about error message

commit ab84c8cfe8511ef9f8e5ffb8a497383f4b008daa
Author: Alan Sapede <[email protected]>
Date:   Sat Jun 12 20:31:53 2021 -0400

    Adds moonbeam, moonriver to ss58 registry (#9028)

    * Adds moonream, moonriver to ss58 registry

    * Fixes names

commit 9e42949aeb8779a36a4c1f8cff037570815f9aff
Author: Guillaume Thiolliere <[email protected]>
Date:   Sat Jun 12 18:15:21 2021 +0200

    Enforce pub calls in pallets (#9085)

    * make all extrinsics public so they are available from outside

    * Impl

    * fix

    * more fix

    * more pub

    * few more

    * merge fix

    * fix ui test

    * fix ui test

    Co-authored-by: Alexander Popiak <[email protected]>
    Co-authored-by: Shawn Tabrizi <[email protected]>
    Co-authored-by: Bastian Köcher <[email protected]>

commit 1f16a6a41b973bbdd800ce07ac68c6055400a321
Author: André Silva <[email protected]>
Date:   Sat Jun 12 16:58:36 2021 +0100

    im-online: send heartbeats at a random period (#8819)

    * im-online: send heartbeats at a random period

    * support: use permill to represent session progress

    * im-online: increase probability of heartbeating with session progress

    * babe, session: fix tests

    * babe: fix test

commit 350ba1293319713f0587d7260863108c7e6e200e
Author: Shawn Tabrizi <[email protected]>
Date:   Sat Jun 12 15:59:56 2021 +0100

    Fixes in Assets Pallet (#9059)

    * upper bound witness with refund

    * simple test

    * track approvals

    * dont allow approvals when asset is frozen

    * destroy returns approval deposit

    * update `NonTransfer` proxies

    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs

    Co-authored-by: Parity Bot <[email protected]>

commit 2c210396dbf67968a5f631912fa4addefdc8d11a
Author: Alexander Popiak <[email protected]>
Date:   Sat Jun 12 12:43:08 2021 +0200

    make all extrinsics public so they are available from outside (#9078)

    Co-authored-by: thiolliere <[email protected]>

commit 6d82c02611c51a5c54d60e02c3c104b10aa3ae71
Author: Andronik Ordian <[email protected]>
Date:   Sat Jun 12 02:47:22 2021 +0200

    disable unused schnorrkel feature (#9084)

commit 3325b100195539427e6b828f7ea4a36341df2c8e
Author: Bastian Köcher <[email protected]>
Date:   Sat Jun 12 01:38:17 2021 +0100

    pallet-offences: Switch to partition_point (#9049)

    This changes the code to use `partition_point` instead of
    `binary_search_by_key`, because this was very likely the problematic
    pallet 2 weeks ago on polkadot.

commit 561dbcff78fcbeb3848cbeb35c8f0397335d7df4
Author: Shaun Wang <[email protected]>
Date:   Sat Jun 12 12:22:40 2021 +1200

    Migrate pallet-staking to pallet attribute macro (#9083)

    * Migrate staking pallet to pallet attribute macro.

    * HistoryDepth default value.

    * Make all calls public.

    * Update frame/staking/src/lib.rs

    * remove externalities again

    * Update lib.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

commit b9f7b588c8ba35ede3bfcce955ddc4712377245e
Author: Bastian Köcher <[email protected]>
Date:   Fri Jun 11 18:24:30 2021 +0100

    Transaction pool: Remove futures-diagnose and thread pool (#9074)

    * Transaction pool: Remove futures-diagnose and thread pool

    This pr removes `futures-diagnose` as this isn't used anymore. Besides
    that the pr also removes the thread pool that was used to validate the
    transactions in the background. Instead of this thread pool we now spawn
    two separate long running tasks that we use to validate the
    transactions. All tasks of the transaction pool are now also spawned as
    essential tasks. This means, if any of these tasks is stopping, the node
    will stop as well.

    * Update client/transaction-pool/src/api.rs

commit 41ab01a8cb2a43f7d743778c066ad91453e0c883
Author: Shawn Tabrizi <[email protected]>
Date:   Fri Jun 11 16:45:13 2021 +0100

    Implement `transfer_all` in Balances Pallet (#9018)

    * transfer_all

    * benchmark

    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs

    * update

    * add note

    * typo

    Co-authored-by: Parity Bot <[email protected]>
    Co-authored-by: Alexander Popiak <[email protected]>

commit 155ac5bcadc3143c60ffded6a3af47bce3fb12e8
Author: Bastian Köcher <[email protected]>
Date:   Fri Jun 11 16:12:57 2021 +0100

    Try fix ui tests (#9082)

    * Try fix ui tests

    * More

commit 218bd4ffb20565e29a8fcca2f8f3ed005fc7d6cc
Author: Pierre Krieger <[email protected]>
Date:   Fri Jun 11 14:36:37 2021 +0200

    Don't connect to reserved nodes if they're banned (#9020)

commit 8f99b4bb177b8cf57b624a10481b6a1e2ea72809
Author: André Silva <[email protected]>
Date:   Fri Jun 11 12:18:41 2021 +0100

    grandpa: ignore justifications from other consensus engines (#9075)

commit 2c84b31c86a62353ad3dbf04fae971b18470c9f5
Author: Folyd <[email protected]>
Date:   Fri Jun 11 01:31:49 2021 +0800

    Migrate ProfilingLayer to tracing registry API (#8943)

    * Migrate ProfilingLayer to tracing registry API

    * Remove the `current_span` field from `BlockSubscriber`.

    * Bump the `tracing-subscriber` version

    * Fix Gitlab CI

commit eb9033b826b9e8115c20707fe66af0ceb177e99c
Author: Zeke Mostov <[email protected]>
Date:   Wed Jun 9 15:05:28 2021 -0700

    [try-runtime-cli] Offchain worker support (#8966)

    * make remote-ext work with ws and safe RPCs

    * Update docs.

    * Update utils/frame/remote-externalities/Cargo.toml

    Co-authored-by: Niklas Adolfsson <[email protected]>

    * Fix test

    * Update lock file

    * Update utils/frame/remote-externalities/src/lib.rs

    Co-authored-by: Bastian Köcher <[email protected]>

    * Fix build again.

    * checkpoint, merging the paged rpc now

    * revert lifetime stuff

    * WIP: remote client init not working

    * Small cleanups

    * use jsonrpsee alpha.7

    * WIP

    * Executiing without errors

    * Reorg & cleanup

    * Trivial cleaning

    * Add txpool & keystore extension

    * Small cleaning

    * More :cleaning

    * Flags: page-size, override-code

    * WIP

    * Apply suggestions from code review

    Co-authored-by: Kian Paimani <[email protected]>

    * Remove heap_pages

    * Dry code extraction from state

    * Formatting

    * More formatting

    * Add issue todo

    * Use jsonrpsee 0.2.0

    * Try trigger gitlab

    * Fix "block_import_works" test

    * fix native_big_block_import_fails_on_fallback test

    * fix commit should work

    * Rewrite UI tests

    * Revert "Rewrite UI tests"

    This reverts commit ada7f670f701c21fb399946a3f6918453f537bcb.

    * try again with UI

    * Use const for legacy heap pages val

    * Move parse module to its own file

    * Move rpc_api module to its own file

    * Apply suggestions from code review

    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

    * trait names: Block, not B

    * Corect HEAP_PAGES_TEST_LEGACY export

    * Update utils/frame/remote-externalities/src/rpc_api.rs

    Co-authored-by: Kian Paimani <[email protected]>

    * Revert test_ext heap_page insert; adjust storage root instead

    * Doc comments for try_runtime::cli::Command

    * TryRuntime stub

    * trailing comma

    * Remove unused dev dep in frame-executive

    * Improve parse::hash variable name & error index

    * Use Result for rpc_api fns

    * Richer err messagges

    * Remove HEAP_PAGE_TEST_LEGACY

    * Update bin/node/executor/tests/basic.rs

    Co-authored-by: kianenigma <[email protected]>
    Co-authored-by: Kian Paimani <[email protected]>
    Co-authored-by: Niklas Adolfsson <[email protected]>
    Co-authored-by: Bastian Köcher <[email protected]>
    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

commit 3e5b4a2444c22561f5d4a995dec28d7ddc01865f
Author: Joshy Orndorff <[email protected]>
Date:   Wed Jun 9 10:36:41 2021 -0400

    remove explicit unit return type (#9053)

commit 4d64381801d6df6567d261f319b2c5981a692f72
Author: radupopa2010 <[email protected]>
Date:   Wed Jun 9 15:51:27 2021 +0200

    READY Update simnet tests to v5 (#8946)

    * Update simnet tests to v4

    * enable simnet tests for PRs

    * add stage to job "test-linux-stable-int"

    * v2.0.0simnet

    * alow build-for-simnet option

    * Fix passing of IMAGE_TAG to downstream

    * forgot to build-for-simnet

    * build-for-simnet

    * build-for-simnet

    * build-for-simnet

    * build-for-simnet

    * build-for-simnet

    * take a shortcut build-for-simnet

    * build-for-simnet

    * update triggering script to polkadot version

    * "revert me"

    * "revert me"  build-for-simnet

    * add simnet version as arg to script

    * revert me build-for-simnet

    * build-for-simnet

    * remove triggering simnet for PRs for now

    * Add suggestions from Vladimir

    * Add suggestions from Vladimir

commit a2f48bf96eecbb5cd1f45bd5319ba814595eaaef
Author: Squirrel <[email protected]>
Date:   Wed Jun 9 10:56:31 2021 +0100

    Stop sending network_state to telemetry (#9026)

    (We send network information to prometheus)

commit d6ac9f551b71d9c7b69afcebfc68ace310ef74ee
Author: Keith Yeung <[email protected]>
Date:   Wed Jun 9 02:31:29 2021 -0700

    Use pallet names to name enum variants (#8990)

    * Remove unused event_metadata variable

    * Eliminate mod_name and use pallet names to name enum variants

    * Rename field name `pallet` to `path`

    * Use only the pallet name to generate variant names

    * Use new naming scheme for Event enum in sudo pallet tests

    * Use new naming scheme for Event enum in offences pallet tests

    * Use new naming scheme for Event enum in contracts pallet tests

    * Use new naming scheme for Event enum in collective pallet tests

    * Use new naming scheme for Event enum in bounties pallet tests

    * Use new naming scheme for Event enum in balances pallet tests

    * Use new naming scheme for Event enum in assets pallet tests

    * Use new naming scheme for Event enum in frame support tests

    * Use new naming scheme for Event enum in tips pallet tests

    * Use new naming scheme for Event enum in transaction payment pallet tests

    * Use new naming scheme for GenesisConfig fields in example pallet tests

    * Use new naming scheme for GenesisConfig fields in elections pallet tests

    * Use new naming scheme for Event enum in election provider multi-phase pallet tests

    * Use new naming scheme for Event enum in elections phragmen pallet tests

    * Use new naming scheme for GenesisConfig fields in chain spec

    * Use new naming scheme for Event enum in staking pallet mock

    * Use new naming scheme for GenesisConfig fields in node-template chain spec

    * Use new naming scheme for GenesisConfig fields in node-testing chain spec

    * Use new naming scheme for Event enum in node executor tests

    * Use new naming scheme for GenesisConfig fields in transaction storage pallet mock

    * Refactor match conditions

commit 6749c701900747accaa35eaf2101586f09baef9e
Author: Guillaume Thiolliere <[email protected]>
Date:   Tue Jun 8 22:54:06 2021 +0200

    put the validate_unsigned implementation inside the pallet definition (#9044)

    Co-authored-by: Shawn Tabrizi <[email protected]>

commit f775d0de6bddeba53ab35bc662fb076291e5260e
Author: David <[email protected]>
Date:   Tue Jun 8 20:10:16 2021 +0200

    Misc telemetry polish (#8484)

    * Remove TelemetryWorker::with_transport
    Make logging more useful

    * Re-instate TelemetryWorker::with_transport

    * Fix typo, don't spam

commit b493dd3fa5d7f07c369562004870046a53a3f3c8
Author: Zeke Mostov <[email protected]>
Date:   Tue Jun 8 10:26:08 2021 -0700

    Small doc updates to `election-provider-multi-phase` (#9041)

    * Small doc updates to election-provider-multi-phase

    * small change

    * Improve challenge phase docs

    * An honest

commit 5f5fbea7a787d8b5db6133530e1dbb0606c08cf1
Author: Niklas Adolfsson <[email protected]>
Date:   Tue Jun 8 18:17:25 2021 +0200

    deps(jsonrpsee): update to 0.2.0 to avoid alpha (#9036)

    The motivation is a couple of bug fixes and not to pin to certain alpha versions.

commit 07a1af348f76e08be36341f8a1b6039765b665bc
Author: Shawn Tabrizi <[email protected]>
Date:   Tue Jun 8 10:02:57 2021 -0400

    Emit `Bonded` event when rebonding (#9040)

    * Emit `Bonded` event when rebonding

    * fix borrow checker

    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

    Co-authored-by: Parity Bot <[email protected]>

commit 0a2472d8364bc103a0a13c8e2dcb7f6ed3e44342
Author: tgmichel <[email protected]>
Date:   Tue Jun 8 13:18:57 2021 +0200

    `rpc-http-threads` cli arg (#8890)

    * Add optional `rpc-http-threads` cli arg

    * Update `http::ServerBuilder`threads

commit 0af6df59aab21d5a23907faf236be1ff235b7581
Author: Andrew Jones <[email protected]>
Date:   Tue Jun 8 12:16:56 2021 +0100

    Delete legacy runtime metadata macros (#9043)

commit d0891796ed48acfad7445b884c8d035dc4a2487a
Author: Xiliang Chen <[email protected]>
Date:   Tue Jun 8 20:59:19 2021 +1200

    fix unreserve_all_named (#9042)

commit fa26ce6b4b59710cb402d76b9c4577c93d2f65d0
Author: Alexander Theißen <[email protected]>
Date:   Mon Jun 7 19:40:23 2021 +0200

    contracts: Add new `seal_call` that offers new features (#8909)

    * Add new `seal_call` that offers new features

    * Fix doc typo

    Co-authored-by: Michael Müller <[email protected]>

    * Fix doc typos

    Co-authored-by: Michael Müller <[email protected]>

    * Fix comment on assert

    * Update CHANGELOG.md

    Co-authored-by: Michael Müller <[email protected]>

commit 5d89967d7cc12d620bda9c9c042dbf7fcc4beb89
Author: Pierre Krieger <[email protected]>
Date:   Mon Jun 7 15:00:03 2021 +0200

    Periodically call `Peerset::alloc_slots` on all sets (#9025)

    * Periodically call alloc_slots on all slots

    * Add test

commit 1fa8cf7cf9dbfe1b093b3e7e116dc3435c7f3f7b
Author: Kian Paimani <[email protected]>
Date:   Mon Jun 7 11:26:31 2021 +0200

    Don't inlucde nominaotrs that back no one in the snapshot. (#9017)

commit 1085a9021134f39d527c1bc828e7904959b3cc1a
Author: cheme <[email protected]>
Date:   Mon Jun 7 11:06:38 2021 +0200

    Compact proof utilities in sp_trie. (#8574)

    * validation extension in sp_io

    * need paths

    * arc impl

    * missing host function in executor

    * io to pkdot

    * decode function.

    * encode primitive.

    * trailing tab

    * multiple patch

    * fix child trie logic

    * restore master versionning

    * bench compact proof size

    * trie-db 22.3 is needed

    * line width

    * split line

    * fixes for bench (additional root may not be needed as original issue was
    with empty proof).

    * revert compact from block size calculation.

    * New error type for compression.

    * Adding test (incomplete (failing)).
    Also lacking real proof checking (no good primitives in sp-trie crate).

    * There is currently no proof recording utility in sp_trie, removing
    test.

    * small test of child root in proof without a child proof.

    * remove empty test.

    * remove non compact proof size

    * Missing revert.

    * proof method to encode decode.

commit 24a92c32680258275926021ae4da7db126ddf1d8
Author: André Silva <[email protected]>
Date:   Sun Jun 6 09:07:29 2021 +0100

    arithmetic: fix PerThing pow (#9030)

    * arithmetic: add failing test for pow

    * arithmetic: fix PerThing::pow

    * Revert back to previous optimisations

    Co-authored-by: Gav Wood <[email protected]>

commit 37bb3ae7eb559afaf9c7dbf7fd99e08b282c8127
Author: André Silva <[email protected]>
Date:   Fri Jun 4 22:31:06 2021 +0100

    consensus: handle justification sync for blocks authored locally (#8698)

    * consensus: add trait to control justification sync process

    * network: implement JustificationSyncLink for NetworkService

    * slots: handle justification sync in slot worker

    * babe: fix slot worker instantiation

    * aura: fix slot worker instantiation

    * pow: handle justification sync in miner

    * babe: fix tests

    * aura: fix tests

    * node: fix compilation

    * node-template: fix compilation

    * consensus: rename justification sync link parameter

    * aura: fix test compilation

    * consensus: slots: move JustificationSyncLink out of on_slot

commit 2cff60c3be7b84d940b219399b1d2c8aa2e4b31d
Author: Andreas Doerr <[email protected]>
Date:   Fri Jun 4 16:46:16 2021 +0200

    Bump parity-db (#9024)

commit d27dea95712696fcc5dd1fcc93f22926e0b9e57f
Author: Arkadiy Paronyan <[email protected]>
Date:   Fri Jun 4 13:27:05 2021 +0200

    Fixed build (#9021)

commit e98aca335f066d84d7a5cbabf280392f39e1cc99
Author: Jakub Pánik <[email protected]>
Date:   Fri Jun 4 11:01:05 2021 +0200

    update ss58 type to u16 (#8955)

commit 0495ead464cc632237d0f9d1687b1ebbb579c7a7
Author: Xiliang Chen <[email protected]>
Date:   Fri Jun 4 19:32:46 2021 +1200

    Named reserve (#7778)

    * add NamedReservableCurrency

    * move currency related trait and types into a new file

    * implement NamedReservableCurrency

    * remove empty reserves

    * Update frame/support/src/traits.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * fix build

    * bump year

    * add MaxReserves

    * repatriate_reserved_named should put reserved fund into named reserved

    * add tests

    * add some docs

    * fix warning

    * Update lib.rs

    * fix test

    * fix test

    * fix

    * fix

    * triggier CI

    * Move NamedReservableCurrency.

    * Use strongly bounded vec for reserves.

    * Fix test.

    * remove duplicated file

    * trigger CI

    * Make `ReserveIdentifier` assosicated type

    * add helpers

    * make ReserveIdentifier assosicated type

    * fix

    * update

    * trigger CI

    * Apply suggestions from code review

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * trigger CI

    * Apply suggestions from code review

    Co-authored-by: Shawn Tabrizi <[email protected]>
    Co-authored-by: Gavin Wood <[email protected]>
    Co-authored-by: Shaun Wang <[email protected]>

commit 7d8a9b6d9862f208e34a7f715448b21250b653e2
Author: Andronik Ordian <[email protected]>
Date:   Fri Jun 4 09:05:21 2021 +0200

    more useful error message (#9014)

commit a57bc4445a4e0bfd5c79c111add9d0db1a265507
Author: Arkadiy Paronyan <[email protected]>
Date:   Fri Jun 4 08:50:59 2021 +0200

    Storage chain: Runtime module (#8624)

    * Transaction storage runtime module

    * WIP: Tests

    * Tests, benchmarks  and docs

    * Made check_proof mandatory

    * Typo

    * Renamed a crate

    * Apply suggestions from code review

    Co-authored-by: Kian Paimani <[email protected]>

    * Added weight for on_finalize

    * Fixed counter mutations

    * Reorganized tests

    * Fixed build

    * Update for the new inherent API

    * Reworked for the new inherents API

    * Apply suggestions from code review

    Co-authored-by: cheme <[email protected]>
    Co-authored-by: Alexander Popiak <[email protected]>
    Co-authored-by: Shawn Tabrizi <[email protected]>

    * Store transactions in a Vec

    * Added FeeDestination

    * Get rid of constants

    * Fixed node runtime build

    * Fixed benches

    * Update frame/transaction-storage/src/lib.rs

    Co-authored-by: cheme <[email protected]>

    Co-authored-by: Kian Paimani <[email protected]>
    Co-authored-by: cheme <[email protected]>
    Co-authored-by: Alexander Popiak <[email protected]>
    Co-authored-by: Shawn Tabrizi <[email protected]>

commit ea5d3570673d125dfe0b7da33b345c3c13195380
Author: Bastian Köcher <[email protected]>
Date:   Thu Jun 3 16:04:29 2021 +0200

    Transaction pool: Ensure that we prune transactions properly (#8963)

    * Transaction pool: Ensure that we prune transactions properly

    There was a bug in the transaction pool that we didn't pruned
    transactions properly because we called `prune_known`, instead of `prune`.

    This bug was introduced by:
    https://github.com/paritytech/substrate/pull/4629

    This is required to have stale extrinsics being removed properly, so
    that they don't fill up the tx pool.

    * Fix compilation

    * Fix benches

    * ...

commit d6e4db6c30667bf3524abced8428401ab141b07a
Author: Shawn Tabrizi <[email protected]>
Date:   Thu Jun 3 09:05:02 2021 -0400

    Add Call Filter That Prevents Nested `batch_all` (#9009)

    * add filter preventing nested `batch_all`

    * more tests

    * fix test

    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

    Co-authored-by: Parity Bot <[email protected]>

commit 2562dda0e0476e7522e89a7f4524a0dfced7e105
Author: Dmitry Kashitsyn <[email protected]>
Date:   Thu Jun 3 18:25:02 2021 +0700

    Removes unused import (#9007)

commit b14fdf5c8b205a5dd00e4c54a32d62f18555c0d8
Author: Gavin Wood <[email protected]>
Date:   Thu Jun 3 13:20:34 2021 +0200

    Non-fungible token traits (#8993)

    * Non-fungible token traits

    * Docs

    * Fixes

    * Implement non-fungible trait for Uniques

    * Update frame/uniques/src/impl_nonfungibles.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * Update frame/uniques/src/impl_nonfungibles.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

    Co-authored-by: Shawn Tabrizi <[email protected]>

commit 48aea1b2f4774c975e2e3f8bf044c9b3f4a1b0ce
Author: Andreas Doerr <[email protected]>
Date:   Thu Jun 3 11:46:43 2021 +0200

    Add ecdsa::Pair::verify_prehashed() (#8996)

    * Add ecdsa::Pair::verify_prehashed()

    * turn verify_prehashed() into an associated function

    * add Signature::recover_prehashed()

commit 94679ebd37f4989f8f7803d4f9aa403b7ba9aead
Author: Shaun Wang <[email protected]>
Date:   Thu Jun 3 20:30:21 2021 +1200

    Migrate pallet-democracy to pallet attribute macro (#8824)

    * Migrate pallet-democracy to pallet attribute macro.

    * Metadata fix.

    * Trigger CI.

commit 437c83817805c39f0f5f5101dfa26f13cc4a4758
Author: Pierre Krieger <[email protected]>
Date:   Wed Jun 2 20:41:21 2021 +0200

    Discard notifications if we have failed to parse handshake (#8806)

commit 538b15fa8dd61f77254abebd5a3336835f4aebe0
Author: Bastian Köcher <[email protected]>
Date:   Wed Jun 2 20:13:47 2021 +0200

    Transactionpool: Make `ready_at` return earlier (#8995)

    `ready_at` returns when we have processed the requested block. However,
    on startup we already have processed the best block and there
    are no transactions in the pool on startup anyway. So, we can set `updated_at`
    to the best block on startup.

    Besides that `ready_at` now returns early when there are no ready nor
    any future transactions in the pool.

commit 4652f9e00f0e3079b9ed40ff806829f17fd1ddcf
Author: Shawn Tabrizi <[email protected]>
Date:   Wed Jun 2 00:30:53 2021 -0400

    also fix bounded vec (#8987)

commit 9f621a936eb5c692ad8efea22a9bb9ecf3bd93d3
Author: MOZGIII <[email protected]>
Date:   Tue Jun 1 23:48:31 2021 +0300

    Convert another instance of Into impl to From in the macros (#8986)

    * Convert another instance of Into impl to From in the macros

    * Convert another location

commit 45f16302d233a70b2e2a8f9b9316b9a2c0e60d04
Author: Boiethios <[email protected]>
Date:   Tue Jun 1 22:27:30 2021 +0200

    Update WeakBoundedVec's remove and swap_remove (#8985)

    Co-authored-by: Boiethios <[email protected]>

commit d8b3fce28513169d8ee1315dd9a4cd92d95753cc
Author: Gavin Wood <[email protected]>
Date:   Tue Jun 1 17:03:13 2021 +0100

    Uniques: An economically-secure basic-featured NFT pallet (#8813)

    * Uniques: An economically-secure basic-featured NFT pallet

    * force_transfer

    * freeze/thaw

    * team management

    * approvals

    * Fixes

    * force_asset_status

    * class_metadata

    * instance metadata

    * Fixes

    * use nmap

    * Fixes

    * class metadata has information field

    * Intiial mock/tests and a fix

    * Remove impl_non_fungibles

    * Docs

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * Reserve, don't transfer.

    * Fixes

    * Tests

    * Tests

    * refresh_deposit

    * Tests and proper handling of metdata destruction

    * test burn

    * Tests

    * Update impl_fungibles.rs

    * Initial benchmarking

    * benchmark

    * Fixes

    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

    * Attributes

    * Attribute metadata

    * Fixes

    * Update frame/uniques/README.md

    * Docs

    * Docs

    * Docs

    * Simple metadata

    * Use BoundedVec

    * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

    * Update frame/uniques/src/lib.rs

    Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>

    * Fixes

    * Update frame/uniques/README.md

    Co-authored-by: Alexander Popiak <[email protected]>

    * Update frame/uniques/README.md

    Co-authored-by: Alexander Popiak <[email protected]>

    * Update frame/uniques/README.md

    Co-authored-by: Alexander Popiak <[email protected]>

    * Docs

    * Bump

    Co-authored-by: Shawn Tabrizi <[email protected]>
    Co-authored-by: Parity Bot <[email protected]>
    Co-authored-by: Lohann Paterno Coutinho Ferreira <[email protected]>
    Co-authored-by: Alexander Popiak <[email protected]>

commit fa23b18e28d9d22824e2edfb76042297aae83efe
Author: Ashley <[email protected]>
Date:   Tue Jun 1 17:14:33 2021 +0200

    Revert "Use `SpawnTaskHandle`s for spawning tasks in the tx pool  (#8958)" (#8983)

    This reverts commit bfef07c0d22ead3ab3c4e0e90ddf9b0e3537566e.

commit 24750eafb691517e3aec70fcd9554cd91d7e4974
Author: Sergei Shulepov <[email protected]>
Date:   Tue Jun 1 16:43:29 2021 +0200

    Do not spend time on verifying the signatures before calling Runtime (#8980)

commit bfef07c0d22ead3ab3c4e0e90ddf9b0e3537566e
Author: Ashley <[email protected]>
Date:   Tue Jun 1 16:28:03 2021 +0200

    Use `SpawnTaskHandle`s for spawning tasks in the tx pool  (#8958)

    * Remove futures-diagnose

    * Use `SpawnTaskHandle`s for spawning tasks in the tx pool

    * Box the spawner

    * Fix tests

    * Use the testing task executor

commit 408e803f91790b1a128a964985de26f2bdf11eea
Author: Kian Paimani <[email protected]>
Date:   Tue Jun 1 14:49:06 2021 +0200

    Inject hashed prefix for remote-ext (#8960)

    * Inject for remote-ext

    * Update utils/frame/remote-externalities/src/lib.rs

    Co-authored-by: Zeke Mostov <[email protected]>

    * Update utils/frame/remote-externalities/src/lib.rs

    Co-authored-by: Zeke Mostov <[email protected]>

    * Apply suggestions from code review

    * Apply suggestions from code review

    Co-authored-by: Zeke Mostov <[email protected]>

commit 04aa0e96b951de3bf0d4282446f19a03e2c70dec
Author: Bastian Köcher <[email protected]>
Date:   Tue Jun 1 13:57:35 2021 +0200

    Dependabot use correct label (#8973)

commit e1d93fb3f08d71ce01d32ab49fed56d6e87f40b7
Author: Squirrel <[email protected]>
Date:   Tue Jun 1 11:51:38 2021 +0100

    Spellling corrections (no code changes) (#8971)

    * Spelling corrections

    * As this might break let's do as a separate PR

commit 5ceb0b0b6fbd57b181f53c5791a372ccccc72cba
Author: Sergei Shulepov <[email protected]>
Date:   Tue Jun 1 12:02:10 2021 +0200

    Update wasmtime to 0.27 (#8913)

    * Update wasmtime to 0.27

    A couple of notes:

    - Now we are fair about unsafeness of runtime creation via an compiled artifact.
      This change was prompted by the change in wasmtime which made
      `deserialize` rightfully unsafe. Now `CodeSupplyMode` was hidden and
      the `create_runtime` now takes the blob again and there is now a new
      fn for creating a runtime with a compiled artifact.
    - This is a big change for wasmtime. They switched to the modern backend
      for code generation. While this can bring performance improvements, it
      can also introduce some problems. In fact, 0.27 fixed a serious issue
      that could lead to sandbox escape. Hence we need a proper burn in.

    This would require a change to PVF validation host as well.

    * Filter regalloc logging

commit f87609ad8d9d974962c49c0c9c0eeca8017b7133
Author: Squirrel <[email protected]>
Date:   Tue Jun 1 10:26:10 2021 +0100

    Reduce cargo doc warnings (#8947)

    Co-authored-by: Bastian Köcher <[email protected]>

commit da051b11ce46a00c1b5d53401ee69ad7ddae355f
Author: Keith Yeung <[email protected]>
Date:   Tue Jun 1 02:23:41 2021 -0700

    Allow usage of path in construct_runtime! (#8801)

    * Allow usage of path in construct_runtime!

    * Fix whitespace

    * Fix whitespace

    * Make expand_runtime_metadata accept slice instead of Iterator

    * Include Call and Event in construct_runtime for testing

    * Migrate impl_outer_event to proc macro

    * Fix integrity_test_works

    * Update UI test expectations

    * Factor in module path while generating enum variant or fn names

    * Use ParseStream::lookahead for more helpful error messages

    * Remove generating outer_event_metadata

    * Ensure pallets with different paths but same last path segment can coexist

    * Remove unnecessary generated function

    * Migrate decl_outer_config to proc macro

    * Add default_filter test for expand_outer_origin

    * Allow crate, self and super keywords to appear in pallet path

    * Add UI test for specifying empty pallet paths in construct_runtime

commit 7ba4e4ced0c0ed4ce8ccba6b36f6d53d7de3db89
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon May 31 18:40:36 2021 +0000

    Bump getrandom from 0.2.2 to 0.2.3 (#8952)

    Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.2 to 0.2.3.
    - [Release notes](https://github.com/rust-random/getrandom/releases)
    - [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/rust-random/getrandom/compare/v0.2.2...v0.2.3)

    Signed-off-by: dependabot[bot] <[email protected]>

    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 25388397aab20a24e2be55103dda95011aa04d7c
Author: Kian Paimani <[email protected]>
Date:   Mon May 31 20:17:56 2021 +0200

    Add deserialize for TransactionValidityError in std. (#8961)

    * Add deserialize for TransactionValidityError in std.

    * Fix derives

commit 6d43761487c36b0b1d3fff0d538d134d0620ce04
Author: Bastian Köcher <[email protected]>
Date:   Mon May 31 20:17:15 2021 +0200

    Optimize `next_storage_key` (#8956)

    * Optimize `next_storage_key`

    - Do not rely on recursion
    - Use an iterator over the overlay to not always call the same method

    * Fix bug

commit fc29e14efd84d34ef4362b9671300611fb41b52b
Author: Roman Proskuryakov <[email protected]>
Date:   Mon May 31 16:05:50 2021 +0000

    Refactor code a little bit (#8932)

commit 61aa8dc17d2bdde36f0c0e1078cde5b79408cb62
Author: Seun Lanlege <[email protected]>
Date:   Mon May 31 16:31:47 2021 +0100

    Use correct CreateInherentDataProviders impl for manual seal (#8852)

    * use correct CreateInherentDataProviders impl for manual seal

    * add babe inherent provider

    * move client into factory fn

commit 87e63fa7c70be29383cb95ff52d71874f1db908a
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon May 31 07:39:35 2021 +0000

    Bump retain_mut from 0.1.2 to 0.1.3 (#8951)

    Bumps [retain_mut](https://github.com/upsuper/retain_mut) from 0.1.2 to 0.1.3.
    - [Release notes](https://github.com/upsuper/retain_mut/releases)
    - [Commits](https://github.com/upsuper/retain_mut/compare/v0.1.2...v0.1.3)

    Signed-off-by: dependabot[bot] <[email protected]>

    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 88021e9db4d2e4f2bf88121f1eaace5b7cf640cf
Author: Shaun Wang <[email protected]>
Date:   Mon May 31 17:57:20 2021 +1200

    Migrate pallet-scored-pool to pallet attribute macro (#8825)

    * Migrate pallet-scored-pool to pallet attribute macro.

    * Remove dummy event.

    * Apply review suggestions.

commit be1b8ef0eefd6e8fbc7abb3d33262d139277da13
Author: Gavin Wood <[email protected]>
Date:   Sat May 29 11:17:26 2021 +0100

    Session key should be settable at genesis even for non-endowed accounts (#8942)

    * Session key should be settable at genesis even for non-endowed accounts

    * Docs

commit 6aaa03130da8abbe7c0aa5cf4c3f10557713f9d6
Author: Alexander Theißen <[email protected]>
Date:   Sat May 29 11:58:26 2021 +0200

    Make `Schedule` fields public to allow for customization (#8924)

    * Make `Schedule` fields public for customization

    * Fix doc typo

    Co-authored-by: Andrew Jones <[email protected]>

    Co-authored-by: Andrew Jones <[email protected]>

commit ac277db0f5467187a5f54a27c01851a59e791961
Author: Kian Paimani <[email protected]>
Date:   Sat May 29 06:20:25 2021 +0200

    make remote ext use batch ws-client (#8916)

    * make remote ext use batch ws-client

    * Add debug log for key length

    * better assertions

    * new sanity_checl

    * try and make it work with batch

    * update test

    * remove exctra uri

    * add missing at

    * remove unused rpc stuff

    * improve

    Co-authored-by: emostov <[email protected]>

commit 4b99c7fef5b6baa9fc10cf3304d36fd453554154
Author: Sebastian Müller <[email protected]>
Date:   Fri May 28 23:32:00 2021 +0200

    weather -> whether (#8938)

commit 6a63f282a5c0fb608569137ed464a23583d2d7de
Author: joe petrowski <[email protected]>
Date:   Fri May 28 21:22:49 2021 +0200

    remove duplicate Issued/Burned events (#8935)

commit 050e4ace716b24df43b5742e44773f5c11b16538
Author: Shawn Tabrizi <[email protected]>
Date:   Fri May 28 14:35:15 2021 -0400

    Simple `MaxBoundedLen` Implementations (#8793)

    * implement max_values + storages info

    * some formatting + doc

    * sudo sanity check

    * timestamp

    * assets (not working)

    * fix assets

    * impl for proxy

    * update balances

    * rename StoragesInfo -> PalletStorageInfo

    * merge both StorageInfoTrait and PalletStorageInfo

    I think it is more future proof. In the future some storage could make
    use of multiple prefix. Like one to store how much value has been
    inserted, etc...

    * Update frame/support/procedural/src/storage/parse.rs

    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

    * Update frame/support/procedural/src/storage/storage_struct.rs

    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

    * Fix max_size using hasher information

    hasher now expose `max_len` which allows to computes their maximum len.
    For hasher without concatenation, it is the size of the hash part,
    for hasher with concatenation, it is the size of the hash part + max
    encoded len of the key.

    * fix tests

    * fix ui tests

    * Move `MaxBoundedLen` into its own crate (#8814)

    * move MaxEncodedLen into its own crate

    * remove MaxEncodedLen impl from frame-support

    * add to assets and balances

    * try more fixes

    * fix compile

    Co-authored-by: Shawn Tabrizi <[email protected]>

    * nits

    * fix compile

    * line width

    * fix max-values-macro merge

    * Add some derive, needed for test and other purpose

    * use weak bounded vec in some cases

    * Update lib.rs

    * move max-encoded-len crate

    * fix

    * remove app crypto for now

    * width

    * Revert "remove app crypto for now"

    This reverts commit 73623e9933d50648e0e7fe90b6171a8e45d7f5a2.

    * unused variable

    * more unused variables

    * more fixes

    * Add #[max_encoded_len_crate(...)] helper attribute

    The purpose of this attribute is to reduce the surface area of
    max_encoded_len changes. Crates deriving `MaxEncodedLen` do not
    need to add it to `Cargo.toml`; they can instead just do

    ```rust
    \#[derive(Encode, MaxEncodedLen)]
    \#[max_encoded_len_crate(frame_support::max_encoded_len)]
    struct Example;
    ```

    * fix a ui test

    * use #[max_encoded_len_crate(...)] helper in app_crypto

    * remove max_encoded_len import where not necessary

    * update lockfile

    * fix ui test

    * ui

    * newline

    * fix merge

    * try fix ui again

    * Update max-encoded-len/derive/src/lib.rs

    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

    * extract generate_crate_access_2018

    * Update lib.rs

    * compiler isnt smart enough

    Co-authored-by: thiolliere <[email protected]>
    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>
    Co-authored-by: Peter Goodspeed-Niklaus <[email protected]>

commit c2ec5bc8f12bb5a084b976f2dc1280796e9c1b23
Author: Alexander Theißen <[email protected]>
Date:   Fri May 28 13:06:16 2021 +0200

    Bump parity-wasm and pwasm-utils to the newest versions everywhere (#8928)

commit 426d57b0a0c2f407fade5ea204bd133e76956404
Author: Alexander Theißen <[email protected]>
Date:   Fri May 28 11:33:22 2021 +0200

    Fix check runtime CI (#8930)

    * Fix check_runtime.sh script

    * contracts: Remove confusing "Related Modules" doc

commit 925f170d1a1f588cf61d7a366c2d744dd16392a6
Author: MOZGIII <[email protected]>
Date:   Thu May 27 23:32:22 2021 +0300

    More sc-service config reexports (#8887)

    * Reexport ExecutionStrategies and ExecutionStrategy

    * Reexport more of the network

    * Reexport the ExecutionStrategy as it's used within ExecutionStrategies

commit 27cc30e88788f6b423d790e34ca39ad0d7fa4219
Author: Denis Pisarev <[email protected]>
Date:   Thu May 27 20:31:29 2021 +0200

    CI: fix simnet trigger (#8927)

    * CI: chore

    * CI: pin simnet version

commit 14fcad989c168e34c494ac752a7f40ff8f627dcc
Author: Roman Proskuryakov <[email protected]>
Date:   Thu May 27 12:54:37 2021 +0000

    Remove: (#8748)

    * `NetworkStatusSinks`
    * `sc_service::SpawnTasksParams::network_status_sinks`

    Also:
    * `sc_service::build_network()` does not return `network_status_sinks`

commit 1cbf0e16832eca5e0733d65279872ce79ddfe9f2
Author: Shawn Tabrizi <[email protected]>
Date:   Thu May 27 01:52:05 2021 -0400

    Fix Compiler Warnings (new rustc) (#8907)

    * unused mmr

    * more unused

    * dyn in executor

    * remove `doc(inline)`

    * fix dyn for sp-api-test

    * update benchmarks

    * Update primitives/core/benches/bench.rs

    * Update primitives/core/benches/bench.rs

    * update another bench

    * fix benchmark?

    Co-authored-by: adoerr <[email protected]>

commit 25db73e7e44b1507c3dc8834e6219da20ba2fc50
Author: Keith Yeung <[email protected]>
Date:   Wed May 26 16:22:35 2021 -0700

    Convert impl_key_prefix_for to proc macro (#8844)

    * Convert impl_key_prefix_for to proc macro

    * Reduce the number of let bindings

    * Remove parsing of inputs for impl_key_prefix_for_tuples

    * Replace unwrap with expect

    * Remove unnecessary array of idents

    * Use numeric identifiers

    * Simplify ident generation

    * Fix whitespacing

    * Add documentation for impl_key_prefix_for_tuple proc macro

    Co-authored-by: Guillaume Thiolliere <[email protected]>

    Co-authored-by: Guillaume Thiolliere <[email protected]>

commit 69e2e0b536cea67f1c7a12c2b3709102ffa63d80
Author: Shumo Chu <[email protected]>
Date:   Wed May 26 13:58:41 2021 -0700

    Manta Network ss58 address registration (#8706)

    * manta network ss58 address registration

    * minor

commit af69a8f8890dc4e411baa00fdbc9f9d35736cdf6
Author: Jakub Pánik <[email protected]>
Date:   Wed May 26 19:47:56 2021 +0100

    Add Basilisk ss58 (#8882)

commit 15731fec6d9e835e4f67b0399894672f4c81798e
Author: Jon Häggblad <[email protected]>
Date:   Wed May 26 18:26:15 2021 +0200

    Migrate pallet-grandpa to attribute macros (#8724)

    * frame/grandpa: migrate Config

    * frame/grandpa: migrate decl_module

    * frame/grandpa: migrate decl_event

    * frame/grandpa: migrate decl_error

    * frame/grandpa: migrate decl_storage

    * frame/grandpa: make report_equivocation_unsigned pub(super)

    * frame/grandpa: remove unused imports

    * frame/grandpa: replace deprecated Module with Pallet

    * frame/grandpa: add RawEvent for compatibility

    * frame/grandpa: create migration to new storage prefix

    * frame/grandpa: bump version to 4.0.0

    * frame/grandpa: address review comments

    * Try using version 3.1 instead

    * frame/grandpa: tweak log text to say cancelled

commit 1f3a89090aecff1aa532c54e78d3fa4eec564b01
Author: Denis Pisarev <[email protected]>
Date:   Wed May 26 13:51:28 2021 +0200

    Revert "Fix stderr in new Rust nightly (#8904)" (#8910)

    This reverts commit c46ffcc6882c58c8e9d76584712841cf94899e36.

commit de95ba50d10683d8aaaad351b6ce0cd3339c9f6f
Author: André Silva <[email protected]>
Date:   Wed May 26 12:33:11 2021 +0100

    grandpa: enable light clients to participate in gossip (#8796)

    * network: allow gossiping to light clients

    * grandpa: gossip global messages to light clients

    * grandpa: don't send neighbor packets to light clients

    * grandpa: fix tests

    * grandpa: export run_grandpa_observer

    * node: run grandpa observer on light client

    * node: start network at end

    * Use wasm_timer in finality-grandpa

    Co-authored-by: Pierre Krieger <[email protected]>

commit cb308ac8d289b3089560a61a2bb6b6093af26f53
Author: Kian Paimani <[email protected]>
Date:   Wed May 26 10:49:45 2021 +0200

    add an absolute measure of election score on-chain as a parameter (#8903)

    * add an absolute measure of election score on-chain as a parameter

    * make it storage item

    * line width

    * some nits

    * Apply suggestions from code review

    Co-authored-by: Guillaume Thiolliere <[email protected]>
    Co-authored-by: Shawn Tabrizi <[email protected]>

    * make a few more things pub

    Co-authored-by: Guillaume Thiolliere <[email protected]>
    Co-authored-by: Shawn Tabrizi <[email protected]>

commit 2c713b5f6a42bda48f6b482c375c8e9df4595d03
Author: MOZGIII <[email protected]>
Date:   Wed May 26 10:16:53 2021 +0300

    Convert Into to From to make clippy happy (#8900)

commit 7fe74c4563a02a37b8546a378625e8fee1e8056b
Author: Alexander Theißen <[email protected]>
Date:   Wed May 26 00:29:55 2021 +0200

    contracts: Fix some minor bugs around instantiation (#8879)

    * Fix output of wrongly outputted error

    The "Tombstoned a contract that is below the subsistence threshold: {:?}" was
    triggered when too few balance was provided. It was a false alarm.

    * Fix return of wrong code_len

    * Split up `NotCallable` into more fine grained errors

    * Fix typos in docs

    Co-authored-by: Keith Yeung <[email protected]>

    * RentNotPayed -> RentNotPaid

    * Fix typo: payed -> paid

    It is OK to change the in-storage field name because:

    1. The SCALE encoding is not based on names only on position.
    2. The struct is not public (only to the crate).

    Co-authored-by: Keith Yeung <[email protected]>

commit 1305ec84b7789f5eee120913ed94dd17a1e5a76f
Author: Denis Pisarev <[email protected]>
Date:   Tue May 25 23:01:00 2021 +0200

    Fix build job (#8905)

    * CI: fix node-template packaging

    * add explicit deps versions

commit c46ffcc6882c58c8e9d76584712841cf94899e36
Author: Denis Pisarev <[email protected]>
Date:   Tue May 25 22:58:42 2021 +0200

    Fix stderr in new Rust nightly (#8904)

    * CI: revert me

    * fix stderr

    * CI: revert me

    * typo

    * more stderr fixes

    * Revert "CI: revert me"

    This reverts commit 5f47effc4965fa5c0c2a6ed92e434a6adb6b1dce.

    * Revert "CI: revert me"

    This reverts commit 7f785660c797b703dd36272cbe313056dd7a1858.

commit 9eac3bfaab3e931e52903534ad9a3ba14d689f66
Author: Frederik Schulz <[email protected]>
Date:   Tue May 25 21:50:12 2021 +0200

    Removes unnecessary blank impl for Backend (#8897)

    * Removes unnecessary blank impl for Backend

    This commit removes a from my perspective unneccessary implementation
    for &T which implement Backend.

    The current implementation exists (again from my perspective) solely
    to satisfy a methods &mut self parameters (i.e. allows to satisfy
    this for an & reference via using &mut &Backend).

    As all implementors use a RefCell with borrow_mut() where actually
    calling the mentioned &mut self method and then forwad to the
    {} implementation of either TrieBackend or ProvingBackend, the
    current &mut self seems to be not needed.

    * Fixed tests client

commit fb90219bffdead9278b6a7880bebf676e5a071af
Author: Kian Paimani <[email protected]>
Date:   Tue May 25 20:00:50 2021 +0200

    make remote-ext work with ws and safe RPCs (#8889)

    * make remote-ext work with ws and safe RPCs

    * Update docs.

    * Update utils/frame/remote-externalities/Cargo.toml

    Co-authored-by: Niklas Adolfsson <[email protected]>

    * Fix test

    * Update lock file

    * Update utils/frame/remote-externalities/src/lib.rs

    Co-authored-by: Bastian Köcher <[email protected]>

    * Fix build again.

    * revert lifetime stuff

    Co-authored-by: Niklas Adolfsson <[email protected]>
    Co-authored-by: Bastian Köcher <[email protected]>
AndreiNavoichyk pushed a commit to Cerebellum-Network/pos-network-node that referenced this pull request Sep 9, 2022
* Emit `Bonded` event when rebonding

* fix borrow checker

* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing "staking(Bonded)" event associated to "staking(rebond)"
3 participants