yjh
9b9964394e
chore: reduce copy times for bytes in core-hashing ( #13519 )
...
* chore: reduce copy bytes for core-hashing
* improve by suggestions and remove unused `xx_into`
* chore: replace sha2 crate by `sp_core::hashing` for pallet-alliance
* fix features
* use sp-core-hashing directly
* add to dev-dep
2023-03-06 14:09:07 +00:00
Gavin Wood
2d7fa18e73
Make DispatchError impl MEL ( #13169 )
...
* Make DispatchError impl MEL
* Upgrade SCALE codec to support `codec(skip)` for MEL
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-01-19 16:47:47 +00:00
Niklas Adolfsson
2b8af8cb1a
release sp-core 7.0.0 and sp-runtime 7.0.0 ( #12599 )
...
* chore(release): sp-core v7.0.0
* chore(release): sp-runtime v7.0.0
* fix bad merge
2022-11-15 14:54:14 +00:00
Xavier Lau
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
Oliver Tale-Yazdi
45966d509e
Fix Rust features ( #11976 )
...
* Add std feature
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Impl function also in tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make compile
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix sp-trie feature
Something makes the bench regression guard fail, maybe this?
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add runtime-benchmarks feature to sc-service
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Fix sp-trie feature"
This reverts commit f2cddfe41bc72e6f2f8133795ec9408ba0c3ec63.
Was already fixed, only needed a CI retry.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-09-14 16:31:58 +00:00
Xiliang Chen
5788461196
pallet alliance ( #11112 )
...
* Add pallet-alliance
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update multihash/cid and format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove useless deps
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add pallet-alliance into node runtime
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix has_identity
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add TooMantBlacklist Error
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add TooLongWebsiteUrlLength Error
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add remove_announcement
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Derive pallet_identity::Config and Fix test/benchmarking
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add part weight for call of pallet-alliance
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove pallet_identity Config trait
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix propose arguments
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo fmt
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix benchmarking of add_blacklist/remove_blacklist
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add benchmarking for init_members
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add benchmarking for propose/vote/veto
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix benchmarking
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove some useless
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some compile issue
* more fix
* all checks
* refactor
* refactor event
* refactor
* cleanup
* cleanup
* fix benchmarking
* fix warning
* fmt
* fix benchmarks
* with storage info
* fmt
* add new config
* fix benchmarks
* fix
* fmt
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* improvements
* fix
* update docs
* rename events, errors, and functions
* make kicking events clearer
* fix
* fix tests
* fix tests
* fix runtime
* fix build
* remove unneeded change
* remove Candidate role from Alliance
* fmt grumbles
* update lock
* update recursion limit
* benchmarks
* convert-try
* benchmark assertions
* fmt ,
* cargo lock
* Update frame/alliance/src/benchmarking.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* add docs to public interfaces
* Apply suggestions from code review
Co-authored-by: Squirrel <gilescope@gmail.com >
* fix build (node)
* review
* use EitherOfDiverse
* update cargo toml
* make all dispatch class Normal
* change blacklist to unscrupulous
* formatting
* fmt oops
* rename benchmarking unscrupulous account creator
Co-authored-by: koushiro <koushiro.cqx@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: joepetrowski <joe@parity.io >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
2022-06-10 18:39:26 +00:00