This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Commit de4cca4
[Contracts] Overflowing bounded
* [Contracts review] Overflowing bounded `DeletionQueue` allows DoS against contract termination
* wip
* wip
* wip
* wip
* wip
* fix doc
* wip
* PR review
* unbreak tests
* fixes
* update budget computation
* PR comment: use BlockWeights::get().max_block
* PR comment: Update queue_trie_for_deletion signature
* PR comment: update deletion budget docstring
* PR comment: impl Default with derive(DefaultNoBound)
* PR comment: Remove DeletedContract
* PR comment Add ring_buffer test
* remove missed comment
* misc comments
* contracts: add sr25519_recover
* Revert "contracts: add sr25519_recover"
This reverts commit d4600e0.
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* PR comments update print_schedule
* Update frame/contracts/src/benchmarking/mod.rs
* Update frame/contracts/src/storage.rs
* Update frame/contracts/src/storage.rs
* rm temporary fixes
* fix extra ;
* Update frame/contracts/src/storage.rs
Co-authored-by: juangirini <[email protected]>
* Update frame/contracts/src/storage.rs
Co-authored-by: Alexander Theißen <[email protected]>
* Update frame/contracts/src/lib.rs
Co-authored-by: Alexander Theißen <[email protected]>
* Update frame/contracts/src/lib.rs
Co-authored-by: Alexander Theißen <[email protected]>
* Support stable rust for compiling the runtime (#13580)
* Support stable rust for compiling the runtime
This pull request brings support for compiling the runtime with stable Rust. This requires at least
rust 1.68.0 to work on stable. The code is written in a way that it is backwards compatible and
should automatically work when someone compiles with 1.68.0+ stable.
* We always support nightlies!
* 🤦
* Sort by version
* Review feedback
* Review feedback
* Fix version parsing
* Apply suggestions from code review
Co-authored-by: Koute <[email protected]>
---------
Co-authored-by: Koute <[email protected]>
* github PR commit fixes
* Revert "Support stable rust for compiling the runtime (#13580)"
This reverts commit 0b985aa.
* Restore DeletionQueueMap
* fix namings
* PR comment
* move comments
* Update frame/contracts/src/storage.rs
* Update frame/contracts/src/storage.rs
* fixes
---------
Co-authored-by: command-bot <>
Co-authored-by: juangirini <[email protected]>
Co-authored-by: Alexander Theißen <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Koute <[email protected]>DeletionQueue allows DoS against contract termination (#13702)1 parent 4bf67fb commit de4cca4
File tree
7 files changed
+1118
-1176
lines changed- bin/node/runtime/src
- frame/contracts/src
- benchmarking
7 files changed
+1118
-1176
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1198 | 1198 | | |
1199 | 1199 | | |
1200 | 1200 | | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | 1201 | | |
1209 | 1202 | | |
1210 | 1203 | | |
| |||
1227 | 1220 | | |
1228 | 1221 | | |
1229 | 1222 | | |
1230 | | - | |
1231 | | - | |
1232 | 1223 | | |
1233 | 1224 | | |
1234 | 1225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 217 | + | |
230 | 218 | | |
231 | 219 | | |
232 | 220 | | |
| |||
3020 | 3008 | | |
3021 | 3009 | | |
3022 | 3010 | | |
3023 | | - | |
3024 | | - | |
3025 | | - | |
3026 | | - | |
| 3011 | + | |
| 3012 | + | |
3027 | 3013 | | |
3028 | 3014 | | |
3029 | | - | |
3030 | | - | |
3031 | | - | |
3032 | | - | |
| 3015 | + | |
| 3016 | + | |
3033 | 3017 | | |
3034 | 3018 | | |
3035 | 3019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
| 1207 | + | |
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | 248 | | |
276 | 249 | | |
277 | 250 | | |
| |||
329 | 302 | | |
330 | 303 | | |
331 | 304 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | 305 | | |
352 | 306 | | |
353 | 307 | | |
| |||
860 | 814 | | |
861 | 815 | | |
862 | 816 | | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | 817 | | |
870 | 818 | | |
871 | 819 | | |
| |||
949 | 897 | | |
950 | 898 | | |
951 | 899 | | |
952 | | - | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
953 | 906 | | |
954 | | - | |
955 | | - | |
| 907 | + | |
| 908 | + | |
956 | 909 | | |
957 | 910 | | |
958 | 911 | | |
| |||
0 commit comments