- Oct 04, 2019
-
-
Joshy Orndorff authored
-
- Oct 03, 2019
-
-
Gavin Wood authored
* Add type-id * Builds with std now. * Fix for cargo * Remove unneeded stuff * Move TypeId.
-
Wei Tang authored
* consensus-pow: add difficulty data to auxiliary * Timestamp api * Implement FinalityProofProvider for () * Add DifficultyApi * Remove assumption that Difficulty is u128 * Use a separate trait for add instead of hard-code it as Saturating * Some convenience functions to work with PowVerifier * Try to fix mining unstability * Fix generic resolution * Unused best_header variable * Fix hash calculation * Remove artificial sleep * Tweak proposer waiting time * Revert sleep removal The reason why it was there is because when mine_loop returns, it means an error happened. In that case, we'd better sleep for a moment before trying again, because immediately trying would most likely just fail. * Pass sync oracle to mining So that it does not mine when major syncing * Expose build time as a parameter Instead of hardcode it as previously 100ms. * Update lock file * Fix compile * Support skipping check_inherents for ancient blocks For PoW, older blocks are secured by the work, and can mostly be considered to be finalized. Thus we can save both code complexity and validation time by skipping checking inherents for them. * Move difficulty fetch function out of loop To make things faster * Remove seed from mining Each engine can use its own Rng source. * Better comments * Add TotalDifficulty definition for U256 and u128 * Update core/consensus/pow/src/lib.rs Co-Authored-By: André Silva <[email protected]> * Rename TotalDifficulty::add -> increment * Use SelectChain to fetch the best header/hash * Update lock file
-
* fix warning * use compact for balance type * bump version
-
* Update README.adoc * Update README.adoc Co-Authored-By: joe petrowski <[email protected]> * Update README.adoc Co-Authored-By: joe petrowski <[email protected]> * Update README.adoc Co-Authored-By: joe petrowski <[email protected]> * Update README.adoc Co-Authored-By: joe petrowski <[email protected]>
-
- Oct 02, 2019
-
-
DemiMarie-parity authored
* Update all dependencies * Upgrade dependencies whenever “easy” “easy” means that there are no major changes required. * Fix build and bump paste dependency to 0.1.6 * Remove dead code * Re-add = dependency for futures-preview * Add missing std features for runtime-io * Remove git dependencies as updated versions have been published to crates.io * try to debug bug * For sr-io, "std" should imply "no_oom" and "no_panic_handler". Otherwise, rustc complains (correctly) about duplicate lang items. * Add missing "runtime-io/std" features * Fix compilation errors * Prevent duplicate lang items Rust does not allow duplicate lang items. When compiled without the `std` feature, `sr-io` defines two lang items. Therefore, `sr-io` compiled without `feature = "std"` must not be linked with `std`. However, `pwasm-utils` and `wasmi-validation` both bring in `std` unless compiled with `default-features = "false"`. This caused a duplicate lang item error. Building both with `default-features = "false"` prevents this error. When building with `feature = "std"`, they should both be built with the `std` feature, so this feature needs to be explicitly depended on. * Bump `impl_version` * Make tests pass Three tests used 1 less gas than they had previously. * Try to un-break build * Add a Cargo.lock file * Revert offchain code * Revert "Revert offchain code" This reverts commit d216d08cc6ca0344614669c1d24cde3aa5c0d4e2. * Don’t try to send a body with a GET request without adding a Transfer-Encoding or Content-Length header. This has always been wrong, but hyperium/hyper#1925 hid the bug until hyper was upgraded to 0.12.35. * Change some more GET requests to POST requests * Fix excess line width and remove an `extern crate` * Delete commented-out extern crate Co-Authored-By: Sergei Pepyakin <[email protected]> * Fix regression in Cargo.toml files dev-dependencies need `default-features = false`, too. * Bump parity-wasm dependency * Bump `futures-preview` * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * Update Cargo.lock files * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * Update core/service/src/chain_ops.rs Co-Authored-By: Sergei Pepyakin <[email protected]>
-
Marcio Diaz authored
* Introduce HeaderMetadata and use it for tree_route. Add lowest_common_ancestor. * Add tests.
-
* Refactor parts of BABE verification into separate module * Fix silly compiler error * Move more of the verification code to verification.rs * Remove some unused imports * Fix line width * fix testsuite compile error * Fix compile errors in tests * Move authorship-related code to its own files * fix compile errors in tests * Respond to review comments by @rphmeier * improve docs * fix compile error * Add missing doc comment
-
thiolliere authored
* fix * bump version * remove println
-
Tomasz Drwięga authored
* Move offchain helpers to sr-primitives. * Add some docs and fix tests. * Refresh cargo.lock * Bump runtime. * Don't run offchain http example.
-
- Oct 01, 2019
-
-
-
thiolliere authored
* impl * patch * lock * some refactor * some avoided copy * new api without ref for doublemap * fix * version bump * fix * point to incoming release * use codec latest * bumpd impl version * fix unused * fix * Update srml/support/src/storage/mod.rs Co-Authored-By: Bastian Köcher <[email protected]>
-
André Silva authored
* grandpa: add identifier to UntilImported logging * grandpa: fix tests
-
Bastian Köcher authored
So, instead of: `type ALL_MODULES = (Module1, Module2, Module3)`; Generate it like this: `type ALL_MODULES = ((Module1, Module2), Module3,);` This should make `construct_runtime!` support an "unlimited" number of modules.
-
Max Inden authored
* srml/authority-discovery: Abstract session key type Previously `srml/authority-discovery` dependet on the `srml/im-online` session key type directly. With this patch `srml/authority-discovery` is generic over the session key type it is going to use, as long as it implements the RuntimeAppPublic trait. With this patch one can use the `srml/authority-discovery` module without the `srml/im-online` module. Next to the above, this patch configures `node/runtime` to use the babe session keys for the authority discovery module. * srml/authority-discovery: Fix line length * srml/authority-discovery/Cargo: Move babe to dev-dependencies * node/runtime: Bump implementation version * srml/authority-discovery: Add doc comment for authority discovery Trait
-
Svyatoslav Nikolsky authored
* async txpool API * Update core/rpc/src/author/mod.rs Co-Authored-By: Tomasz Drwięga <[email protected]> * Update core/transaction-pool/graph/src/pool.rs Co-Authored-By: Tomasz Drwięga <[email protected]> * Pool -> Pool + ValidatedPool * removed lost block_on when importing xt from network * fix grumbles * alias for future::Executor in rpc * removed executor from Author RPCs * Pool + SharedValidatedPool -> Pool * fix compilation after merge * another fix * another fix
-
André Silva authored
* srml: system: add kill_prefix * node: bump spec_version
-
Ashley authored
* Add an Error type to Aura * Add Cargo.lock * AuRa -> Aura Co-Authored-By: Kian Paimani <[email protected]>
-
- Sep 30, 2019
-
-
André Silva authored
* srml: im-online: fix pruning of received heartbeats * srml: im-online: add test for received heartbeats pruning * srml: im-online: remove unused variables from test * node: bump spec_version
-
Bastian Köcher authored
* Give more information why conversion between native and runtime failed This adds the SCALE error description to the error when the conversion between native and runtime failed. * Fixes tests
-
Pierre Krieger authored
This reverts commit 2b85a48c.
-
Max Inden authored
* Cargo.toml: Pin protobuf version The protobuf crate introduced a breaking change within its semver minor update from 2.8.1 to 2.9.0. This commit ensures Substrate uses anything within the 2.8 minor releases. * Cargo.lock: Update * core/sr-api-macros/Cargo.toml: Pin protobuf version The protobuf crate introduced a breaking change within its semver minor update from 2.8.1 to 2.9.0. This commit ensures Substrate uses anything within the 2.8 minor releases. * Revert "Cargo.toml: Pin protobuf version" This reverts commit 4e293c741c5c4510cb1a347c444d1876d65ddb1e. * core/sr-api-macros/Cargo.toml: Pin protobuf within dev-dependencies * core/sr-api-macros/Cargo.toml: Add comment and link to Githu issue
-
- Sep 28, 2019
-
-
* refactor contracts to use Time trait * bump version
-
Tomasz Drwięga authored
* Add some chainspec tests and make sure we validate it. * Manual implementation of Extension + Forks definitions. * Move chain spec to separate crate. * Allow using ChainSpec with extensions. * Renames. * Implement Extension derive. * Implement Extension for Forks. * Support specifying fork blocks. * make for_blocks work * Support forks correctly. * Add a bunch of docs. * Make fork blocks optional. * Add missing docs. * Fix build. * Use struct for check_block params. * Fix tests? * Clean up.
-
André Silva authored
* peerset: fix handling of reserved only peering mode * core: add cli parameter to enable reserved nodes only * peerset: fix tests * peerset: add test for priority only mode * core: fix reserved only cli flag description * peerset: extend docs on set_priority_only
-
* Explicit sync API * Keep sync requests * Don't request the finalized block we already have * Dropping requests & docs * Renamed a function
-
Talha Cross authored
-
Sergey Pepyakin authored
-
André Silva authored
-
- Sep 27, 2019
-
-
thiolliere authored
* refactor * fix * remove unused vec storages * address comment
-
Bastian Köcher authored
-
Coenen Benjamin authored
Signed-off-by: Benjamin Coenen <[email protected]>
-
Alexey authored
* added new_full_concrete for service * line width fix * Update node/cli/src/service.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update node/cli/src/service.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update node/cli/src/service.rs Co-Authored-By: Bastian Köcher <[email protected]> * replaced new_full * empty * added backticks to pass ci
-
Wei Tang authored
* Update libsecp256k1 dep to 0.3.0 * Bump impl_version
-
- Sep 26, 2019
-
-
Bastian Köcher authored
* Make `TestOffchainExt` panic on unknown requests * Fix test
-
Instead, use `Debug` for `debug_trace!`
-
André Silva authored
-
thiolliere authored
* doc * fix * Apply suggestions from code review Co-Authored-By: Kian Paimani <[email protected]> * complete suggestion
-
Ashley authored
* Add random_seed impl for offchain api * switch to rand::random
-
- Sep 25, 2019
-
-
thiolliere authored
-