Squirrel
20347c2edb
Use MIN associated const ( #9199 )
2021-06-24 15:48:39 +01:00
Bastian Köcher
eac38de198
Remove RandomNumberGenerator ( #9198 )
...
* Remove RandomNumberGenerator
This is not used in Substrate/Polkadot. If someone else needs it, they
can copy the code or use chacha.
* 🤦
2021-06-24 14:19:36 +00:00
kotlarmilos
0763716c92
Add OriginTrail Parachain to SS58 Registry ( #9067 )
...
* Add OriginTrail Parachain to SS58 Registry
* Update ss58-registry.json
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-24 13:18:15 +02:00
Squirrel
ea1f21a904
Use MAX associated const ( #9196 )
...
* Use MAX associated const
2021-06-24 11:53:49 +01:00
Squirrel
09d9c2c9f6
Fix to support u32::MAX ( #9188 )
...
* Fix to support u32::MAX
* Update primitives/runtime/src/random_number_generator.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-06-24 07:20:15 +00:00
Squirrel
6ccb5dc713
Result<Option<>> rather than Option<Option<>> ( #9119 )
...
* Clearer API to code against.
2021-06-23 13:41:46 +01:00
Squirrel
07449840bd
Less slices ( #9176 )
...
* Less slices
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-23 13:33:48 +01:00
akashi6824
1bd834b6a4
Add PolkaFoundry, PolkaSmith SS58 address ( #8623 )
...
* Add PolkaFoundry, PolkaSmith SS58 address
* chang decimals to 18
* fix format
* fix format
2021-06-23 10:04:40 +02:00
André Silva
4069877c1c
consensus: remove unused offline tracker ( #9178 )
2021-06-23 05:01:11 +00:00
Tomasz Drwięga
8be60821bb
Fix allocator waste assessment in docs ( #9167 )
...
* Fix allocator comment.
* Add explanations where this comes from.
* Clarify absolute values.
2021-06-22 13:20:29 +02:00
Arkadiy Paronyan
77a4b980ae
Fast sync ( #8884 )
...
* State sync
* Importing state fixes
* Bugfixes
* Sync with proof
* Status reporting
* Unsafe sync mode
* Sync test
* Cleanup
* Apply suggestions from code review
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
* set_genesis_storage
* Extract keys from range proof
* Detect iter completion
* Download and import bodies with fast sync
* Replaced meta updates tuple with a struct
* Fixed reverting finalized state
* Reverted timeout
* Typo
* Doc
* Doc
* Fixed light client test
* Fixed error handling
* Tweaks
* More UpdateMeta changes
* Rename convert_transaction
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Code review suggestions
* Fixed count handling
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-22 09:32:43 +00:00
Peter Goodspeed-Niklaus
46ccf17e7c
fix some failing ui tests ( #9157 )
...
* fix some failing ui tests
* Update frame/support/test/tests/pallet_ui/call_argument_invalid_bound_2.stderr
* Update frame/support/test/tests/pallet_ui/call_argument_invalid_bound_2.stderr
* fix ui test
* fix ui test
* TRYBUILD=overwrite cargo test --workspace -- ui
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-06-21 13:12:58 +00:00
André Silva
a26ec52450
make SelectChain async ( #9128 )
...
* make SelectChain async
* make JustificationImport async
2021-06-20 11:01:09 +00:00
André Silva
0417e4e37f
babe: add comments to block weight and expose block_weight function ( #9145 )
...
* babe: add comments to block weight and expose block_weight function
* babe: expose function for block weight key
2021-06-19 12:40:53 +00:00
Kian Paimani
50b9c35037
double the allocator limit ( #9102 )
...
* double the allocator limit
* 32 MiB should be enough for everybody.
* Update doc
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2021-06-17 16:01:27 +00:00
Bastian Köcher
1278b9a6d4
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.
2021-06-17 07:27:53 +00:00
André Silva
ae5cd339b5
grandpa: cleanup sync bounds ( #9127 )
...
* grandpa: cleanup sync bounds
* grandpa: cleanup imports
* remove cargo patch
2021-06-16 12:51:09 +00:00
cheme
693b39f43b
Frame remove_all with size limit. ( #9106 )
...
* remove prefixed content with limit.
* test match
* factor comment and factor ext limit removal.
* fix benchmark
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-15 13:23:58 +00:00
Alan Sapede
945bf4f2c1
Adds moonbeam, moonriver to ss58 registry ( #9028 )
...
* Adds moonream, moonriver to ss58 registry
* Fixes names
2021-06-13 02:31:53 +02:00
Andronik Ordian
ad5b8afa6e
disable unused schnorrkel feature ( #9084 )
2021-06-12 00:47:22 +00:00
Bastian Köcher
11037ac35f
Try fix ui tests ( #9082 )
...
* Try fix ui tests
* More
2021-06-11 15:12:57 +00:00
Folyd
907e52b28c
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
2021-06-10 17:31:49 +00:00
Zeke Mostov
f0120d3b62
[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 <niklasadolfsson1@gmail.com >
* Fix test
* Update lock file
* Update utils/frame/remote-externalities/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* 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 <5588131+kianenigma@users.noreply.github.com >
* 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 <coriolinus@users.noreply.github.com >
* 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 <5588131+kianenigma@users.noreply.github.com >
* 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 <kian@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2021-06-09 22:05:28 +00:00
cheme
f01c396677
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.
2021-06-07 09:06:38 +00:00
André Silva
f0c5699bc6
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 <gavin@parity.io >
2021-06-06 10:07:29 +02:00
André Silva
c44b552d8f
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
2021-06-04 21:31:06 +00:00
Arkadiy Paronyan
84811dae00
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 <5588131+kianenigma@users.noreply.github.com >
* 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 <emericchevalier.pro@gmail.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* 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 <emericchevalier.pro@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-04 06:50:59 +00:00
Gavin Wood
bf1ea96c66
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 <shawntabrizi@gmail.com >
* Update frame/uniques/src/impl_nonfungibles.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-03 13:20:34 +02:00
Andreas Doerr
ccb4e6a551
Add ecdsa::Pair::verify_prehashed() ( #8996 )
...
* Add ecdsa::Pair::verify_prehashed()
* turn verify_prehashed() into an associated function
* add Signature::recover_prehashed()
2021-06-03 09:46:43 +00:00
Gavin Wood
e819fd03f9
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 <shawntabrizi@gmail.com >
* Update frame/uniques/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/uniques/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/uniques/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* 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 <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Update frame/uniques/src/lib.rs
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
* Fixes
* Update frame/uniques/README.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update frame/uniques/README.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update frame/uniques/README.md
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Docs
* Bump
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Lohann Paterno Coutinho Ferreira <developer@lohann.dev >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-06-01 18:03:13 +02:00
Squirrel
dc88e6dd7e
Reduce cargo doc warnings ( #8947 )
...
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-01 10:26:10 +01:00
Kian Paimani
58a6f31ccf
Add deserialize for TransactionValidityError in std. ( #8961 )
...
* Add deserialize for TransactionValidityError in std.
* Fix derives
2021-05-31 18:17:56 +00:00
Bastian Köcher
fa22eb7361
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
2021-05-31 20:17:15 +02:00
Kian Paimani
b3fabde4e3
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 <32168567+emostov@users.noreply.github.com >
2021-05-29 04:20:25 +00:00
Shawn Tabrizi
444d4e204c
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 <coriolinus@users.noreply.github.com >
* Update frame/support/procedural/src/storage/storage_struct.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* 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 <shawntabrizi@gmail.com >
* 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 <coriolinus@users.noreply.github.com >
* extract generate_crate_access_2018
* Update lib.rs
* compiler isnt smart enough
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com >
2021-05-28 18:35:15 +00:00
Alexander Theißen
61859bbdb1
Bump parity-wasm and pwasm-utils to the newest versions everywhere ( #8928 )
2021-05-28 11:06:16 +00:00
Shawn Tabrizi
fa89414bba
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 <0xad@gmx.net >
2021-05-27 07:52:05 +02:00
Shumo Chu
c110425251
Manta Network ss58 address registration ( #8706 )
...
* manta network ss58 address registration
* minor
2021-05-26 22:58:41 +02:00
Jakub Pánik
60345c9ffc
Add Basilisk ss58 ( #8882 )
2021-05-26 20:47:56 +02:00
Denis Pisarev
4ee5da2403
Revert "Fix stderr in new Rust nightly ( #8904 )" ( #8910 )
...
This reverts commit 2928e42800 .
2021-05-26 13:51:28 +02:00
Denis Pisarev
2928e42800
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.
2021-05-25 22:58:42 +02:00
Frederik Schulz
ad76ac798e
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
2021-05-25 19:50:12 +00:00
Parth
77eba1351a
add ExternalitiesExt for TestExternalities ( #8877 )
2021-05-21 10:21:12 +00:00
Andreas Doerr
a183031eef
Fix doc for CryptoStore::ecdsa_sign_prehashed() ( #8876 )
...
* fix ecdsa_sign_prehashed() doc
* document both instances
2021-05-21 09:52:20 +02:00
Bastian Köcher
ee726ed55d
Improve impl_opaque_keys! ( #8856 )
...
The macro should assume less about the scope where it is being used in.
In this case it is about not assuming that the crate where the macro is
called in provides a `std` feature.
2021-05-19 08:37:42 +00:00
Andreas Doerr
ed39290f91
Add CryptoStore::ecdsa_sign_prehashed() ( #8838 )
...
* Pair::sign_prehashed()
* add CryptoStore::ecdsa_sign_prehashed()
* add test for testing keystore
* address review comments
2021-05-18 16:07:45 +02:00
Kian Paimani
b5f23bfd1c
Ensure election offchain workers don't overlap ( #8828 )
...
* Initial version, well tested, should work fine.
* Add one last log line
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix a few more things
* fix build
* rewrite the whole thing with a proper lock
* clean
* clean some nits
* Add unit tests.
* Update primitives/runtime/src/offchain/storage_lock.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Fix test
* Fix tests
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-18 12:22:06 +00:00
Sergei Shulepov
bee5c2dd71
Emit wasm sections only when compiling to wasm ( #8845 )
2021-05-18 12:06:35 +00:00
Andreas Doerr
a68ed7c3d8
[clippy] Fix clippy issues for crate sp-core ( #8809 )
...
* Fix clippy issues for crate sp-core
* Update primitives/core/benches/bench.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update primitives/core/src/ed25519.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove clippy attributes
* Missed a clippy attribute
* remove clippy attributes for bechmarks as well
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-18 09:38:56 +02:00
Ayush Mishra
c28ab1fcac
Improve match statement ( #8817 )
2021-05-15 21:43:58 +02:00