- Oct 11, 2019
-
-
Gavin Wood authored
* Fix semantics of ExistenceRequirement::KeepAlive. * Bump runtime version
-
- Oct 10, 2019
-
-
Bastian Köcher authored
This function executes the given closure in a context where the test externalities are set. This makes the srml tests easier to write, as the test externalities need to be created anyway.
-
Xiliang Chen authored
* Abstract Randomness trait * bump version * fix doc test * simpify code a bit * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> Co-Authored-By: Kian Paimani <[email protected]> * fix tests
-
Kian Paimani authored
* First working version of all operations. * New and improved version of everything. * Minor cleanup. * Fix build * Finalize nignum * Some final works on refactors and tests. * fix build * Some review comments * Bench, better try into and nits * mutify the API * rename to big_uint * unmutify. * Remove resize * Apply suggestions from code review * Update core/sr-primitives/src/sr_arithmetic.rs Co-Authored-By: thiolliere <[email protected]> * BEtter proof * Fix panic doc. * Bump.
-
- Oct 09, 2019
-
-
Demi Obenour authored
* Update dependencies, respecting semver * Bump dependencies * Don’t patch tiny-bip39 dependency
-
Bastian Köcher authored
* Move `Externalities` into `substrate-externalities` - `Externalities` now support generic extensions - Split of `primtives-storage` for storage primitive types * Move the externalities scoping into `substrate-externalities` * Fix compilation * Review feedback * Adds macro for declaring extensions * Fix benchmarks * Introduce `ExtensionStore` trait * Last review comments * Implement it for `ExtensionStore`
-
- Oct 08, 2019
-
-
* babe: re-use code to propose and import test block * babe: add failing test for slot validation * babe: verify slot numbers are strictly increasing
-
Demi Obenour authored
-
* split off system randomness functions into a new module * bump spec and impl version * Move randomness to bottom of construct_runtime calls, move initialization into on_initialize * Update srml/randomness/Cargo.toml Co-Authored-By: Kian Paimani <[email protected]> * Update srml/randomness/src/lib.rs Co-Authored-By: Kian Paimani <[email protected]> * Update srml/randomness/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/randomness/Cargo.toml Co-Authored-By: Bastian Köcher <[email protected]> * Improve system example * Update Cargo.lock * Fix randomness example * Get rid of the stored index * Add tests * Add a random test * Improve docs * Fix executive test :^) * Add a utility function to tests * Update srml/randomness/Cargo.toml Co-Authored-By: Gavin Wood <[email protected]> * Update srml/randomness/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/randomness/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Change interpretation of block numbers * rename crate * refactor randomess module usage * change random material len to a const * Update srml/randomness-collective-flip/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/randomness-collective-flip/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]>
-
Weiliang Li authored
-
Jim Posen authored
* executor: Move definitions of externals out of wasm_executor module. * executor: Create WasmRuntime trait. This will be used to decouple the runtime cache from wasmi execution. * executor: Remove WasmExecutor and move methods to wasmi_execution. These will now be crate-internal functions and there is no need for the struct. * executor: Set default default_heap_pages in NativeExecutor. * cli: CLI configuration for Wasm execution method. * executor: Remove wasmi-specific code from wasm_runtime. * Respond to review comments.
-
Xiliang Chen authored
* expose module errors into metadata * it checks * Tests for error metadata * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * remove inherent errors from metadata * bump version * Apply suggestions from code review Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/support/src/error.rs Co-Authored-By: Bastian Köcher <[email protected]>
-
Kian Paimani authored
* document how to make a custom weight calculator * Simpler explanation and implementation. * remove unneeded where
-
- Oct 07, 2019
-
-
* client: fix comparison of CachedHeaderMetadata in tree_route * client: add regression test for tree_route
-
Bruno Škvorc authored
* Alternative sysvar setup for Windows The command line setup did not work for me. This adds instructions and images on how to do it through the UI. * Modified instructions to use Powershell, removed images from PR.
-
Svyatoslav Nikolsky authored
* fetch all keys at once in light RPC subscriptions * restore lost fil
-
- Oct 06, 2019
-
-
Hernando Castano authored
-
- Oct 05, 2019
-
-
Bastian Köcher authored
-
Micheal Waltz authored
-
André Silva authored
-
Marcio Diaz authored
* Use header_metadata in verify. * Log hash in header_metadata error. * Fix naming, error.
-
- Oct 04, 2019
-
-
* Attemp to fix it. * Move env to the begining.
-
André Silva authored
* babe: fix type on find_pre_digest call * fork-tree: optimize prune * babe: fix test compilation
-
André Silva authored
* babe: prune epoch tree when importing a new epoch change * fork-tree: fix tree pruning * babe: actually prune epoch change fork tree * Fix typos * babe: add test for epoch tree pruning * fork-tree: fix pruning of stale forks
-
Gavin Wood authored
* Implement and test batch * Add files. * Remove comments. * Update srml/utility/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Fixes
-
-
asynchronous rob authored
-
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
-