- Sep 06, 2019
-
-
Wei Tang authored
* consensus-pow: init primtives and verifier * consensus-pow: add total difficulty auxiliary * consensus-pow: implement total difficulty chain selection * consensus-pow: implement pow import queue * consensus-pow-primitives: add mine into PowApi * consensus-pow: implement mining * Update lock file * Style fixes No run-on expressions allowed. * consensus-pow: refactor register_pow_inherent_data_provider * consensus-pow: make PowApi::mine yieldable * consensus-pow: better mining loop * Add missing license header * consensus-pow-primitives: clarify the meaning of None for PowApi::verify * consensus-pow: changing total difficulty addition to use saturating add * consensus-pow: change mine-loop error to log on error! level * consensus-pow: allow inserting arbitrary preruntime digest for pow The preruntime digest can be intepreted by the runtime as the block author/coinbase. * Fix line width * More line width fixes * consensus-pow: separate difficulty, verify API This makes it more apparent that currently in PoW engine, `difficulty` should be input, not output. * srml-pow: implementation of average_span difficulty adjustment * srml-pow: basic blake2 algo example * srml-pow-average-span: make it not require genesis config * srml-pow: add support for authorship * Missing license headers * consensus-pow: PowAlgorithm trait generalization * Missing docs for consensus-pow * More docs * node-runtime: bump impl_version * Add rationale for difficulty type * consensus-pow: refactor aux_key * Update lock file * Update core/consensus/pow/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/primitives/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Update core/consensus/pow/primitives/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Remove PowRuntimeAlgorithm * block_id -> parent_block_id * Auxiliary data -> auxiliary storage data * Fix error message * Fix compile * Update core/consensus/pow/primitives/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Update core/consensus/pow/primitives/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Update core/consensus/pow/src/lib.rs Co-Authored-By: DemiMarie-parity <[email protected]> * Fix crate description * More docs * Address grumbles 1. Make preruntime Optional. 2. Add more docs on what is `preruntie` and `round`. 3. Replace `Default::default` with the approriate type.
-
Kian Paimani authored
* Remove some dead code from staking * Fix var name.
-
- Sep 05, 2019
-
-
Svyatoslav Nikolsky authored
* changes tries build cache added CT build cache test * fix lines width * fixed some grumbles * clear cache when: digests disabled, top-level or skewed digest is built * cached_changed_keys -> with_cached_changed_keys
-
- Sep 04, 2019
-
-
Sergey Pepyakin authored
* Fix units for srml-contracts * Bump node runtime version.
-
André Silva authored
* client: only report block import to telemetry if new best * grandpa: fix tests * consensus: derive Default for ImportedAux * network: fix test
-
Bastian Köcher authored
* srml-system checks * wip * more modules compiles * node-runtime checks * build.sh passes * include dispatch error in failed event * revert some unnecessary changes * refactor based on comments * more compile error fixes * avoid unnecessary into * reorder code * fixes some tests * manually implement encode & decode to avoid i8 workaround * more test fixes * more fixes * more error fixes * Apply suggestions from code review Co-Authored-By: Tomasz Drwięga <[email protected]> * address comments * test for DispatchError encoding * tyep alias for democracy * make error printable * line width * fix balances tests * fix executive test * fix system tests * bump version * ensure consistent method signature * Apply suggestions from code review Co-Authored-By: Gavin Wood <[email protected]> * changes based on review * Add issue number for TODOs * fix * line width * fix test * Update core/sr-primitives/src/lib.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update core/sr-primitives/src/traits.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/council/src/motions.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/council/src/motions.rs Co-Authored-By: Bastian Köcher <[email protected]> * update based on review * More concrete macro matching * fix test build issue * Update hex-literal dependency version. (#3141) * Update hex-literal dep version. * Update lock file. * Start to rework the new error handling * More work to get it back compiling * Start to fix after master merge * The great transaction error handling refactoring * Make `decl_error` errors convertible to `&'static str` * Make srml-executive build again * Fix `sr-primitives` tests * More fixes * Last round of fix ups * Fix build * Fix build * Apply suggestions from code review Co-Authored-By: Tomasz Drwięga <[email protected]> * Rename some stuff * Fixes after master merge * Adds `CheckBlockGasLimit` signed extension * Remove debug stuff * Fix srml-balances test * Rename `InvalidIndex` to `CannotLookup` * Remove weird generic parameters * Rename function again * Fix import * Document the signed extension * Change from `Into` to `From` * Update srml/contracts/src/lib.rs Co-Authored-By: Sergei Pepyakin <[email protected]> * Fix compilation * Update srml/contracts/src/lib.rs Co-Authored-By: Tomasz Drwięga <[email protected]> * Update core/sr-primitives/src/transaction_validity.rs Co-Authored-By: Tomasz Drwięga <[email protected]> * Remove unused code * Fix compilation * Some cleanups * Fix compile errors * Make `TransactionValidity` a `Result` * Apply suggestions from code review Co-Authored-By: Gavin Wood <[email protected]> * Beautify the code a little bit and fix test * Make `CannotLookup` an inherent error declared by `decl_error!` * Adds some documentation * Make `ApplyOutcome` a result * Up the spec_version * Apply suggestions from code review Co-Authored-By: Gavin Wood <[email protected]> Co-Authored-By: DemiMarie-parity <[email protected]>
-
Bastian Köcher authored
* Implement `TryInto` for outer events * Remove invalid comment * Fix compilation
-
Shawn Tabrizi authored
* Fix some instances of `runtime-io` * Patch a bunch * More patches for consistancy * more patch * Fix various build issues * Fix tests * Patch `srml-support-*` crates * Fix doc tests * Revert "Fix doc tests" This reverts commit ba2ec61d. * Revert "Patch `srml-support-*` crates" This reverts commit 9a607045. * Missed one * Fix doc tests
-
- Sep 03, 2019
-
-
Bastian Köcher authored
-
- Sep 02, 2019
-
-
Arkadiy Paronyan authored
-
Bastian Köcher authored
-
Caio authored
-
Sergey Pepyakin authored
-
* Initial implementation, some redundancy is awkward and there is some useless computation (but there is a pending pr for that). Next are tests. * Minimal tests and fix extend child. * implement iterator for change child trie. * prune child trie. * Fix pruning test. * bump spec version. * Avoid empty child trie (could also be checked before) * tabs. * Fix child digest overriding each others. * Restore doc deleted on merge. * Check correct child value on extrinsics build. * Revert runtime version update.
-
- Sep 01, 2019
-
-
Bastian Köcher authored
-
Svyatoslav Nikolsky authored
* chain+state RPCs are async now * wrapped too long lines * create full/light RPC impls from service * use ordering * post-merge fix
-
cheme authored
* missing on_custom for child read. * fix and complete, add test cases. * shorten line. * replace vecs of key value tuple with maps.
-
Sergey Pepyakin authored
-
Tomasz Drwięga authored
* Abstract constructing extrinsic and signing. * Initial impl of signer. * Implement get payload. * Clean up the code. * Improve docs. * Bump version. * Update core/sr-primitives/src/generic/unchecked_extrinsic.rs Co-Authored-By: Bastian Köcher <[email protected]> * Fix tests & address grumbles. * Fix build. * Fix runtime tests. * Fix bound test. * Fix bound test.
-
- Aug 30, 2019
-
-
Benjamin Kampmann authored
* generalize tree_root to remove client.backend dependency * replace client.backend.blockchain.header with client.header * move used_state_cache_size into client info * Create intermediate Setup State. Fixes #1134 * remove client.backend from finality proof * update node-template * move memory backend into test helper mode * move test helper into client * starting the big refactor, remove unused functions * apply_finality * apply_finality * replacing more .backend from environment with client directly * remove .backend from grandpa by using traits * remove .backend from babe * remove .backend from tests where it is not needed * remove .backend from tests * fixing tests * fixing tests * fixing more tests * fixing tests * fix all forks test * fix style * fixing unnecessary allocation * remove old test. * fix service docs * apply suggestion * minor clean ups * turns out the test-helper features actually is being used! * fixing line length. * fix line length * minor cleaning * Apply suggestions from code review thanks, @Basti Co-Authored-By: Bastian Köcher <[email protected]> * address grumbles * simplify finalize block on client * move block back into inner function * Apply suggestions from code review Co-Authored-By: DemiMarie-parity <[email protected]> * use as.ref instead of match * Update core/client/src/backend.rs Co-Authored-By: DemiMarie-parity <[email protected]>
-
- Aug 29, 2019
-
-
thiolliere authored
-
thiolliere authored
* impl * file split * old comment * better error message * WIP * basti test works * comment * remove old files * impl swap for storage map * fix * fix and comment * code refactor * code refactor * code format * code refactor * fix * fix * fix * document generators * license * doc * doc * fmt Co-Authored-By: Bastian Köcher <[email protected]> * some comment addressed * storage_items small refactor * fix storage_items * more precise returned type * fix * code fmt suggestion Co-Authored-By: Bastian Köcher <[email protected]> * remove box allocation * bump version * rename function as behavior has changed * fix doc
-
gabriel klawitter authored
-
Bastian Köcher authored
-
thiolliere authored
* simplify module deposit_event declaration * fix * bump version * fix * fix test * fix doc
-
Kian Paimani authored
* Move phragmen to primitives * Improved docs * New crate. * Update lock. * Fix dependency. * Fix build. * Add basic testing and truth-value implementation with float types * Update srml/staking/src/lib.rs * Nits. * Bump. * Fix benchmarks.
-
* Extract author API from the substrate-rpc crate. * Split out API from RPC. * Clean up naming. * Fix tests. * Shorten error translations. * Update Cargo.lock
-
Bastian Köcher authored
* Adds `WASM_TARGET_DIRECTORY` env variable to `wasm-builder` * Create the `wasm-builder-runner`'s in a common workspace * Make `wasm-builder` trigger less rebuilds * Version up * Adds script for building only the WASM files * Apply suggestions from code review Co-Authored-By: André Silva <[email protected]> Co-Authored-By: DemiMarie-parity <[email protected]>
-
Svyatoslav Nikolsky authored
* CT config methods are accepting zero * intrduce && use configuration range in CT * Update core/client/db/src/lib.rs Co-Authored-By: cheme <[email protected]> * full PR URI * updated next_max_level_digest_range comment * added skewed digest description * added comment for loop * call next_max_level_digest_range from prev_max_level_digest_block * more test cases * Update core/state-machine/src/changes_trie/surface_iterator.rs Co-Authored-By: cheme <[email protected]> * updated comment
-
- Aug 28, 2019
-
-
André Silva authored
-
Sergey Pepyakin authored
* Add some more codeowners * Add more rules * Fixes * Update CODEOWNERS * Grandpa -> GRANDPA Co-Authored-By: André Silva <[email protected]> * self.add()
-
Tomasz Drwięga authored
* Add test. * Bump version.
-
André Silva authored
* node: reduce block time to 3s and add primary probability constant * node: update flaming fir chain spec * node: fix integration test
-
André Silva authored
* node: use plain vec for tasks_to_spawn * node: spawn background tasks in light client setup
-
André Silva authored
* grandpa: only send catch-up requests to authorities * grandpa: fix gossip tests * grandpa: test sending catch-up requests only to authorities * grandpa: fix catch-up test * grandpa: apply suggestions from code review
-
André Silva authored
* im-online: support using ed25519 and sr25519 crypto * app-crypto: add trait bounds to RuntimePublic::Signature * im-online: add missing type annotations * authority-discovery: depend on im-online module and use its crypto * node: set i'm online crypto to sr25519 * node: bump spec_version * rpc: don't generate i'm online pubkey in insert_key method * im-online: fix docs * im-online: move app crypto packages * aura: move app crypto packages
-
Pierre Krieger authored
-
- Aug 27, 2019
-
-
Sergey Pepyakin authored
* Add ability to supply extra storage in test-client * Don't use native_equivalent in tests. * Get rid of native_equivalent * Try to make fields private * Apply Basti's suggestions Co-Authored-By: Bastian Köcher <[email protected]>
-
Kian Paimani authored
* expose len from codec to storage. * refactor runtime with len and append. * Undo example. * Remove imports. * Bump codec. * Optionify. * Make decode_len counscious. * Refactor. * Update srml/support/src/storage/hashed/generator.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/support/src/storage/hashed/generator.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/support/src/storage/hashed/generator.rs Co-Authored-By: Bastian Köcher <[email protected]> * Update srml/support/src/storage/hashed/generator.rs Co-Authored-By: Bastian Köcher <[email protected]> * Fix merge. * fix some docs. * Add NoDefault trait. * Bump. * Final nits. * Update srml/support/src/traits.rs * new approach toward len. * re-create lock file. * Fix build errors and Option handling. * More test fix * Use default for append as well. * Fix runtime. * Add support for linked_map * More tweaks from review. * Fix style * Change api for none-values * Bump.
-
Bastian Köcher authored
-