- Aug 27, 2019
-
-
Arkadiy Paronyan authored
* Fixed uncle pruning * Version bump
-
Bastian Köcher authored
* Make sure that `on_before_session_ending` is called * Move the call above the validtor set being set * Bump spec_version
-
Pierre Krieger authored
* Move Service::new to a macro * Move function calls to macros * Extract offchain_workers and start_rpc in separate function In follow-up commits, we want to be able to directly call maintain_transaction_pool, offchain_workers, and start_rpc, without having to implement the Components trait. This commit is a preliminary step: we extract the code to freestanding functions. * Introduce an AbstractService trait * Introduce NewService as an implementation detail of Service * Implement traits on NewService instead Instead of implementing AbstractService, Future, and Executor on Service, we implement them on NewService instead. The implementations of AbstractService, Future, and Executor on Service still exist, but they just wrap to the respective implementations for NewService. * Move components creation back to macro invocation Instead of having multiple $build_ parameters passed to the macro, let's group them all into one. This change is necessary for the follow-up commits, because we are going to call new_impl! only after all the components have already been built. * Add a $block parameter to new_impl This makes it possible to be explicit as what the generic parameter of the NewServiceis, without relying on type inference. * Introduce the ServiceBuilder struct Introduces a new builder-like ServiceBuilder struct that creates a NewService. * Macro-ify import_blocks, export_blocks and revert_chain Similar to the introduction of new_impl!, we extract the actual code into a macro, letting us get rid of the Components and Factory traits * Add export_blocks, import_blocks and revert_chain methods on ServiceBuilder Can be used as a replacement for the chain_ops::* methods * Add run_with_builder Instead of just run, adds run_with_builder to ParseAndPrepareExport/Import/Revert. This lets you run these operations with a ServiceBuilder instead of a ServiceFactory. * Transition node and node-template to ServiceBuilder * Transition transaction-factory to the new service factory This is technically a breaking change, but the transaction-factory crate is only ever used from within substrate-node, which this commit updates as well. * Remove old service factory * Adjust the AbstractService trait to be more usable We slightly change the trait bounds in order to make all the methods usable. * Make substrate-service-test compile * Fix the node-cli tests * Remove the old API * Remove the components module * Fix indentation on chain_ops * Line widths * Fix bad line widths commit * Line widths again
🤦 * Fix the sync test * Apply suggestions from code review Co-Authored-By: Gavin Wood <[email protected]> * Address some concerns * Remove TelemetryOnConnect * Remove informant::start * Update jsonrpc * Rename factory to builder * Line widths😩 -
Bastian Köcher authored
-
Tomasz Drwięga authored
* Introduce capabilities filtering for calls. * Bump impl version. * Allow RichOffchainCall to only read offchain db. * Fix code. * Panic on invalid calls. * Merge execution contexts and expose capabilities. * Fix repr * Re-enable keystore for offchain calls.
-
Bastian Köcher authored
-
- Aug 26, 2019
-
-
Svyatoslav Nikolsky authored
-
joe petrowski authored
-
Andrew Jones authored
-
- Aug 25, 2019
-
-
Xiliang Chen authored
* add Copy to Moment type * bump version * add Copy to support::Traits::Time::Moment and removed few clones
-
- Aug 24, 2019
-
-
Gavin Wood authored
* Allow root to force transfers * Bump version * Avoid changing pre-existing encodings
-
Kian Paimani authored
* Remove bogus constants. * Bump.
-
Svyatoslav Nikolsky authored
-
thiolliere authored
-
asynchronous rob authored
* introduce some type aliases for round and set-id * overhaul session "changed" flag and document better * do_initialize in BABE when getting new session * grandpa module tracks set IDs * update runtime versions * doc comment -> comment * Include docs fixes from Gav Co-Authored-By: Gavin Wood <[email protected]> * some more review changes * fix srml-grandpa compilation
-
Bastian Köcher authored
* Show the available key management RPC calls in README * minor fixes
-
Tomasz Drwięga authored
* Implement HTTP request in offchain workers * Bump impl_version * Don't compile offchain workers for WASM anymore * Initialize HttpConnector as a fallback. * Apply review suggestions
😳 -
Tomasz Drwięga authored
-
thiolliere authored
* fix linkedmap swap * version bump
-
- Aug 23, 2019
-
-
* grandpa: don't send catch up requests when running GRANDPA observer * grandpa: fix tests * grandpa: add tests for catch up requests
-
Kian Paimani authored
* New doc for signed extensions. * Cleanup. * review nits.
-
- Aug 22, 2019
-
-
Marcio Diaz authored
-
thiolliere authored
-
-
- Aug 21, 2019
-
-
thiolliere authored
-
thiolliere authored
-
Jim Posen authored
* Add ability to destroy a contract in the overlay. * Don't allow contracts to be destroyed in recursive execution. * Tests for contract self-destruction. * Don't allow constructor to exit with insufficient balance. * Remove dead code. * Bump node runtime spec version.
-
André Silva authored
-
Toralf Wittner authored
This version fixes an issue with lifetime elision which causes compilation to fail on recent rustc versions (e.g. 1.39.0-nightly (bea0372a1 2019-08-20)). See https://github.com/paritytech/soketto/pull/1 for more information.
-
- Aug 20, 2019
-
-
Bryant Eisenbach authored
-
André Silva authored
-
asynchronous rob authored
-
thiolliere authored
* tests * fix * bump version
-
Max Inden authored
In order to have authorities (validators) discover each other, they need to publish their public addresses by their ip address on the Kademlia Dht indexed by their public key. This payload needs to be signed by a key identifying them as a valid authority. Code inside `/core` does not know the current set of authorities nor can it assume what kind of cryptography primitives are currently in use. Instead it can retrieve its public key and the current set of authorities from the runtime and have it sign and verify Dht payloads. This commit enables code in `/core` to do so by introducing a srml module and runtime api to: 1. Retrieve own public key. 2. Retrieve public keys of current authority set. 3. Sign a Dht payload. 4. Verify a Dht payload. This commit makes the logic from the previous commit (`core/consensus/common/primitives.ConsensusApi`) 444bf719 obsolete and thus removes it.
-
André Silva authored
-
Tomasz Drwięga authored
* Allow RPCs to be customized. * Implement node-rpc extensions. * Working on a test. * Add node-testing crate. * Fix genesis test config * Fix nonce lookups. * Clean up. * Fix expected block type. * Make the RPC extension function optional. * Fix service doc test. * Bump jsonrpc. * Bump client version. * Update Cargo.lock * Update jsonrpc. * Fix build. * Remove unused imports. * Fix signed extra. * Post merge clean up. * Fix tests. * Patch hashmap-core. * Fix build. * Fix build. * Remove hashmap_core patches.
-
- Aug 19, 2019
-
-
cheme authored
* Update trie crate to non hashmap_core one. * bump runtime impl.
-
Svyatoslav Nikolsky authored
* value range in blockchain cache * revert me (testing for spurious failure) * Revert "revert me (testing for spurious failure)" This reverts commit 21a4a3cf.
-
André Silva authored
* network: handle safe fork_tree::revert errors * grandpa: deal with race conditions on finality * network: return on fork_tree revert
-
Bastian Köcher authored
* Do not call externalities without `Ext` being set * Fix compare and set * Bump runtime version. * Bump hashmap_core
-