Commit Graph
11 Commits
Author SHA1 Message Date
Xavier Lau de71fecc4e Add MaxTipAmount for pallet-tips (#1709)
Last week we experienced a governance attack.
Surprisingly, there was no upper limit on the tip amount.

Due to the mechanism of pallet-fragment-election, the council members
will be refreshed immediately. Attacker is easy to control the council
and give a large tip amount.
2023-09-28 21:08:05 +10:00
Xavier LauandSquirrel 5838ab681d Add sudo to template node (#2748)
* Add sudo to template node

* Fix

* Change as suggest

* Update parachain-template/runtime/src/lib.rs

Co-authored-by: Squirrel <giles@parity.io>

* Change as suggest

---------

Co-authored-by: Squirrel <giles@parity.io>
2023-06-19 16:53:57 +00:00
Xavier Lau c94302bc55 Correct issue link (#1904) 2022-11-24 11:16:34 +01:00
Xavier Lauandparity-processbot 86198c5471 Use array-bytes for All Array/Bytes/Hex Operations (#12190)
* Use `array-bytes` for All Array/Bytes/Hex Operations

Signed-off-by: Xavier Lau <xavier@inv.cafe>

* Reorder

* Self Review

* Format

* Fix Tests

* Bump `array-bytes`

* Optimize large test res

Signed-off-by: Xavier Lau <xavier@inv.cafe>
Co-authored-by: parity-processbot <>
2022-09-21 06:12:20 +00:00
Xavier Lau 4687a419eb Remove Unused Trait Bound (#5838) 2022-07-29 12:34:12 +00:00
Xavier Lau 88cee48d1e Remove Useless Inherent Data Provider (#5750)
* Remove Useless Inherent Data Provider

* Remove Unused Deps
2022-07-29 00:27:26 +02:00
Xavier Lau 9e218944c4 Fix Typo (#5766) 2022-07-17 21:22:43 +02:00
Xavier Lau d0f81ba65f Rename extra_constant (#5749) 2022-07-06 10:04:52 +00:00
AurevoirXavier a5b59c5d69 Expose ToOwned (#11060) 2022-03-18 15:03:21 +00:00
AurevoirXavier 8781574dc4 Use Lowercase (#11059) 2022-03-18 12:35:38 +00:00
Xavier LauandTomasz Drwięga f9122a870e Support MMR Pruning (#9700)
* Use `0.3.2`

* Replace `u64` with `NodeIndex`

* Fix Typo

* Add Pruning Logic

* Fix Some Tests

* Remove Comment

* Log Only Under STD

* Return while No Element to Append

* Optimize Pruning Algorithm

* Update Doc

* Update Doc

* Zero Copy Algorithm

* Import Missing Type

* Fix Merge Mistake

* Import Missing Item

* Make `verify` Off-Chain

* `cargo fmt`

* Avoid using NodeIndex in incorrect places.

* Simplify pruning.

* Format

Co-authored-by: Tomasz Drwięga <tomasz@parity.io>
2021-11-23 13:04:05 +00:00