- Jun 23, 2020
-
-
David authored
-
https://github.com/paritytech/substrateDavid authored
Merge branch 'na-sgx-hello-world' of https://github.com/paritytech/substrate into na-sgx-hello-world * 'na-sgx-hello-world' of https://github.com/paritytech/substrate: change storage_hasher to blake2_128 add some logs feat: add `sgx_hello_world` pallet template
-
David authored
* master: Ensure the listen addresses are consistent with the transport (#6436) client/network/service: Add primary dimension to connection metrics (#6472) `pallet-scheduler`: Check that `when` is not in the past (#6480) bound some missing bound for elevated trait (#6487) Fix the browser node and ensure it doesn't colour the informant output (#6457) Fix `sp-api` handling of multiple arguments (#6484) impl Debug for sc_service::Configuration (#6400) Remove lingering runtime upgrades (#6476) Optimize offchain worker api by re-using http-client (#6454) Implement nested storage transactions (#6269) Avoid panic on dropping a `sc_network::service::out_events::Receiver`. (#6458) network: remove unused variable (#6460) [CI] Don't tag PRs on companion job cancels (#6470) update collective events docs to be consistent with changes (#6463) `pallet-staking`: Expose missing consts (#6456) Fix issues with `Operational` transactions validity and prioritization. (#6435) pallet-atomic-swap: generialized swap action (#6421) node: spawn block authoring and grandpa voter as blocking tasks (#6446) change everything to transaction (#6440)
-
Cecile Tonglet authored
* Initial commit Forked at: 0c42ceda No parent branch. * Ensure the listen addresses are consistent with the transport * Update client/network/src/error.rs * Update client/network/src/service.rs * Better implementation * Fix bad previous impl * add boot_nodes * reserved nodes * test boot nodes * reserved nodes tests * add public_addresses and make specific error type * Update client/network/src/error.rs Co-authored-by: Pierre Krieger <[email protected]> Co-authored-by: Pierre Krieger <[email protected]>
-
Max Inden authored
* client/network/service: Add primary dimension to connection metrics Two nodes can be interconnected via one or more connections. The first of those connections is called the primary connection. This commit adds another dimension to the `sub_libp2p_connections_{closed,opened}_total` metrics to differentiate primary and non-primary connections being opened / closed. By intuition more than one connection between two nodes is rare. Tracking the fact whether a connection is primary or not will help prove or disprove this intuition. * .maintain/monitoring: Ensure to sum over all connections_closed variants * client/network/service: Rename is_primary to is_first * client/network/service: Split by metric name with two additional metrics * Revert ".maintain/monitoring: Ensure to sum over all connections_closed variants" This reverts commit 2d2f93e4. * client/network/service: Remove labels from distinct metrics
-
Bastian Köcher authored
* `pallet-scheduler`: Check that `when` is not in the past * Break some lines
-
thiolliere authored
-
Ashley authored
* Fix browser informant * Fix documentation * Add an informant_output_format function to the cli config * Wrap informant output format in an option * Revert batch verifier * Remove wasm-timer from primitives io cargo lock * Drop informant_output_format function * derive debug for output format
-
Bastian Köcher authored
With the switch to `decode_all_with_depth_limit` we silently broken support for functions with multiple arguments. The old generated code tried to decode each parameter separately, which does not play well with `decode_all`. This pr adds a test to ensure that this does not happen again and fixes the bug by decoding everything at once by wrapping it into tuples.
-
Cecile Tonglet authored
* Initial commit Forked at: d735e4d0 No parent branch. * Make sc_service::Configuration derive Debug * Replace task_executor fn's input by proper TaskExecutor type (cleaner) * impl From<Fn> for TaskExecutor * Update client/cli/src/runner.rs * Add some doc, examples and tests * Replace Deref by fn spawn as suggested Co-authored-by: Bastian Köcher <[email protected]>
-
Shawn Tabrizi authored
* Remove lingering runtime upgrades * remove unused warnings * remove tests
-
pscott authored
* Fix typo in offchain's docs * Use Self keyword in AsyncApi::new() * Move httpclient to be part of OffchainWorkers to optimize block import * Fix compilation errors for tests * Add wrapper struct for HyperClient * Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit * Revert "Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit" This reverts commit 7af97498. * Add lazy_static for tests
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
Alexander Theißen authored
* Add transactional storage functionality to OverlayChanges A collection already has a natural None state. No need to wrap it with an option. * Add storage transactions runtime interface * Add frame support for transactions * Fix committed typo * Rename 'changes' variable to 'overlay' * Fix renaming change * Fixed strange line break * Rename clear to clear_where * Add comment regarding delete value on mutation * Add comment which changes are covered by a transaction * Do force the arg to with_transaction return a Result * Use rust doc comments on every documentable place * Fix wording of insert_diry doc * Improve doc on start_transaction * Rename value to overlayed in close_transaction * Inline negation * Improve wording of close_transaction comments * Get rid of an expect by using get_or_insert_with * Remove trailing whitespace * Rename should to expected in tests * Rolling back a transaction must mark the overlay as dirty * Protect client initiated storage tx from being droped by runtime * Review nits * Return Err when entering or exiting runtime fails * Documentation fixup * Remove close type * Move enter/exit runtime to excute_aux in the state-machine * Rename Discard -> Rollback * Move child changeset creation to constructor * Move child spawning into the closure * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]> * Fixup for code suggestion * Unify re-exports * Rename overlay_changes to mod.rs and move into subdir * Change proof wording * Adapt a new test from master to storage-tx * Suggestions from the latest round of review * Fix warning message Co-authored-by: Bastian Köcher <[email protected]>
-
Roman Borschel authored
* Avoid panic on dropping a `Receiver`. * CI
-
- Jun 22, 2020
-
-
André Silva authored
-
s3krit authored
-
Alexander Popiak authored
-
Bastian Köcher authored
* `pallet-staking`: Expose missing consts * Apply suggestions from code review Co-authored-by: Nikolay Volf <[email protected]> Co-authored-by: joe petrowski <[email protected]> * Update the source docs Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: Nikolay Volf <[email protected]> Co-authored-by: joe petrowski <[email protected]>
-
Niklas Adolfsson authored
-
- Jun 21, 2020
-
-
Tomasz Drwięga authored
* Fix weight limit for operational transactions. * Include BlockExecutionWeight.
-
Wei Tang authored
* pallet-atomic-swap: generialized swap action * Bump spec_version * Fix weight calculation * Remove unnecessary type aliases
-
André Silva authored
* service: add spawner for essential tasks * node: spawn block authoring and grandpa voter as blocking tasks * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]>
-
Nikolay Volf authored
-
- Jun 20, 2020
-
-
s3krit authored
-
Bastian Köcher authored
This removes the `dev-dependency` onto `sp-npos-elections` from itself. A crate should not depend on itself directly, especially not to make any macros work.
-
- Jun 19, 2020
-
-
Bastian Köcher authored
We need to check that the public key of an authority exists in our keystore before we can successfully claim a plain secondary slot.
-
Arkadiy Paronyan authored
* Validate encoding of extrinsics passed to runtime * Bump codec version explicitly
-
Gavin Wood authored
-
Denis_P authored
-
Nikolay Volf authored
-
Max Inden authored
In order to tell whether an address is the local nodes address the authority discovery module previously compared the Multihash within the `p2p` Multiaddr protocol. rust-libp2p recently switched to a new PeerId representation (see [1]). Multihashes of the same PeerId in the new and the old format don't equal. Instead of comparing the Multihashes, this patch ensures the module compares the PeerIds [1] https://github.com/libp2p/rust-libp2p/issues/555
-
Bastian Köcher authored
Before we only updated the chain info of sync when we have imported something using the import queue. However, if you import your own blocks, this is not done using the import queue and so sync is not updated. If we don't do this, it can lead to sync switching to "major sync" mode because sync is not informed about new blocks. This especially happens on Cumulus, where a collator is selected multiple times to include its block into the relay chain and thus, sync switches to major sync mode while the node is still building blocks.
-
Max Inden authored
-
thiolliere authored
-
thiolliere authored
Root origin use no filter by default. Scheduler and Democracy dispatch without asserting BaseCallFilter (#6408) * make system root origin build runtime origin with no filter * additional doc
-
Cecile Tonglet authored
* Initial commit Forked at: d735e4d0 No parent branch. * Errors if slot_duration is zero * Errors if slot_duration is zero * Revert "Errors if slot_duration is zero" This reverts commit a9e9820e . * Update client/consensus/slots/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]>
-
Dan Forbes authored
* Simple Docs for Atomic Swap Pallet * Fix copy-and-paste error
-