- Feb 21, 2019
-
-
thiolliere authored
if system wasn't the first module then it crashed
-
Pierre Krieger authored
* Report the network PeerId to the telemetry * Fix accidental paste
-
Pierre Krieger authored
* Fix #1825 * Add comment
-
- Feb 20, 2019
-
-
* Introduce new testnet ready for 0.10 * Upgraded dd spec
-
Arkadiy Paronyan authored
-
Arkadiy Paronyan authored
* First part of gossip protocol refactoring * Message validation in GRANDPA * Reverted to time-based expiration for future round messages * Removed collect_garbage_for_topic * Use consensus engine id instead of kind * Use try_init Co-Authored-By: arkpar <[email protected]> * Comment Co-Authored-By: arkpar <[email protected]> * Added expiration check on broadcast Co-Authored-By: arkpar <[email protected]> * Apply suggestions from code review Co-Authored-By: arkpar <[email protected]> * Style * Style
-
- Feb 19, 2019
-
-
André Silva authored
* core: implement logic for tracking dag of possible pending changes * core: move pending justifications dag to its own crate * core: remove unnecessary clone bounds on dag * core: request justifications in-order from the dag * core: dag: rename changes variables to node * core: dag: allow finalizing blocks not part of dag * core: dag: track best finalized number * core: dag: add more tests * core: sync: clean up pending justifications dag * core: dag: derive codec decode encode * core: dag: better error support * core: dag: add finalization guarded by predicate * core: grandpa: track multiple authority set changes in dag * core: dag: add pre-order iterator * core: grandpa: request justifications on startup * core: dag: rearrange order of definitions * core: rename util/dag to util/fork_tree * core: fork_tree: add docs * core: fork_tree: add more tests * core: fork_tree: fix issues found in tests * core: grandpa: fix authorities tests * core: grandpa: add docs for is_descendent_of * core: sync: add docs for PendingJustifications * core: sync: add test for justification requests across forks * core: sync: don't resend import or finality notifications in tests * core: grandpa: add test for importing multiple change blocks * core: grandpa: fix logic for checking if a block enacts a change * core: grandpa: fix authorities tests
-
-
thiolliere authored
* remove amount associated * make a new trait to bound some arithmetics to balances or assets: It also remove arithmetic bounds of srml-support::traits::Currency. To update your code then use srml_support::traits::ArithmeticType like: `type Currency: ArithmeticType + Currency<Self::AccountId, Balance=BalanceOf<Self>>; ` with `type BalanceOf<T> = <<T as Trait>::Currency as ArithmeticType>::Type; ` * improve decl_storage when it explicit serde bound: basically don't try to be smarter than rust and just use where clause.
-
- Feb 18, 2019
-
-
Tomasz Drwięga authored
* Fix linked map for traits. * Fix Option<_> variant. * Improve naming a tad * Rebuild runtime * Encapsulate private data in the inner module. * Bump impl version. * Fix deriving codec in srml-example. * Fix derivation without importing parity-codec-derive. * Fix config() for map.
-
- Feb 17, 2019
-
-
Gregory Terzian authored
* use channels to implement basic import queue * async justification import * better conditional for is_done in tests * reword the test for presence of link * fix conditional * trace instead of panic when no link present * reword expectations when sending to importers * fix * debug justification import error * update expectations * use NumberFor * nits * add general description * move error handling into closure
-
gabriel klawitter authored
-
- Feb 15, 2019
-
-
-
Michael Müller authored
* Encode count of exported blocks correctly There was a type mismatch: import used u32, export used Number. * Wait for import to finish The issue was that even though the import thread was still running, the main thread exited. * Remove superfluous parentheses * Improve structure, add proofs for expects * Unify types for export/import length
-
gabriel klawitter authored
-
Xiliang Chen authored
* wip * Split bytes fee charging and charging by amount into different traits. * Move to edition 2018. * Implemented charge fee traits for fees module. * Implemented 'on_finalise' for fee module. * Updated fees finalize impl. * Renaming and documentation update. * Added overflow & underflow check for fee calculation. * Added mock and unit tests for fee module. * More unit tests for fees module. * Fixed srml-executive unit tests. * Remove transaction base/bytes fee from balances module, fix unit tests. * fix compile error * Fixed unit test. * Minor fixes. * Bump spec version. * Bump spec version. * Updated fees module and runtime wasm. * Fees module code style improvement; updated runtime wasm. * Bump spec and impl version.
-
Svyatoslav Nikolsky authored
* use DB backend in test client * Update core/client/db/src/lib.rs Co-Authored-By: svyatonik <[email protected]>
-
Roman Borschel authored
Ensure the config directory exists before trying to write the public key file. It is the responsibility of obtain_private_key to do so, as per the purpose of this function.
-
- Feb 13, 2019
-
-
Shawn Tabrizi authored
* Adding vesting tests to Balances module * Fix gitlab message, bump impl
-
Gautam Dhameja authored
* added demo module to node template * updated comments * replaced demo with updated template module * Personal preferences here * fixed comment inside macro
-
André Silva authored
-
André Silva authored
* core: grandpa: collect garbage for topic * core: grandpa: use collect_garbage_for_topic in tests
-
Gav Wood authored
* Add more naunce to the runtime CI agent - If there are no changes to runtime code, exit ok; otherwise: - If spec_version has changed, then: - Exit ok if the runtime is rebuilt, fail otherwise. - If impl_version has changed, then exit ok. - If neither version has changed, fail. * Update check_runtime.sh
-
Stanislav Tkach authored
-
Gav Wood authored
* first draft of ristretto crypto module #1685 * adds better comments and code-style * remove the last evil unwrap * remove a mistakenly committed lockfile * add a fresh new lockfile --will probably need a manual merge later * fix an invalid old test vector * Wire in ristretto * Update comment * Fix use. * new Signature type api alias to be compatible with substrate * Add new keyring, fix node executor tests * Bump version. * Remove all hashes. * Update core/primitives/src/sr25519.rs Co-Authored-By: gavofyork <[email protected]> * Revert back to Ed25519 (until JS UI is ready) * Fix test
-
Tomasz Drwięga authored
* Refactor decl_storage a bit to allow easier impl of linked map. * A bunch of refactorings for storage generation. - Rename StorageMap and ChildrenStorageMap to avoid confusion with generator::StorageMap. - Separate implementation from the procedural macro code to clean it up. - Make sure that genesis is initialised using the `StorageValue/StorageMap` generated implementations instead of going RAW. * WiP: Writing test. * Basic implementation. * Implement enumeration. * Fix non-std issues. * fix warning * Fix test-client. * Address review grumbles - part 1 * Avoid cloning the key, relax Storage requirements. * Rebuild runtime. * Remove dangling todo.
-
- Feb 12, 2019
-
-
Pierre Krieger authored
-
Wei Tang authored
* Refactor head setting operation to a separate function * Fix commit issue and implement set_head standalone in db * Add standalone set head operations * Address grumbles * Change number_and_hash_to_lookup key in light mod to take reference * Fix bug in set head commit * Add a convenience fn * Fix a deadlock * Fix missing argument
-
Gregory Terzian authored
* remove wait on future in network bridge * nit Co-Authored-By: gterzian <[email protected]> * nit Co-Authored-By: gterzian <[email protected]> * nit * propagate error * nit once more * nit Co-Authored-By: gterzian <[email protected]>
-
Pierre Krieger authored
* Make network-libp2p's Service generic over the message * Apply suggestions from code review Co-Authored-By: tomaka <[email protected]> * Fix warning
-
Bastian Köcher authored
-
- Feb 11, 2019
-
-
Gav Wood authored
* Add Proposed event. * Bump and rebuild
-
Pierre Krieger authored
-
Marcio Diaz authored
* fix: adds new execution strategy nativeElseWasm and replace nativeWhenPossible with it * feat: adds cmd line params for execution strategies * fix: uses of cmd line execution strategies * chore: remove white spaces * chore: remove println * chore: remove whitespace * fix: generating functions with context * feat: add function to generate with_context declarations * fix: add implementation for with_context function calls * fix: add execution context to call_api_at function * fix: making use of context to select strategy for block_builder * chore: cleaning up * fix: merging issues * fix tests * add wasm files * chore: small doc for context fields * chore: delete redundant docs * fix: use full path for ExecutionContext * fix: add context functions from inside fold_item_impl * chore: remove clone * fix: moving generative function to utils, remove unused imports * fix: add missing full path for ExecutionContext * fix: merge issues * update wasm files * fix: update to keep up with changes in master * chore: remove unused functions, clean up * fix test * fix grumbles * fix: add more tests * fix: some refactorings * feat: add execution strategy to call * chore: small improvements * fix: add message to panic * fix tests
-
Bastian Köcher authored
Procedural do not support `$crate` to get access to the crate where the macro is defined. We use a hack to re-export the crate under a known name. With rust edition 2018, people started to rename their crates in `Cargo.toml`, but that breaks the re-export. This commit introduces `proc-maco-crate` that supports finding the requested crate name, even if it was renamed.
-
Pierre Krieger authored
-
Stanislav Tkach authored
-
André Silva authored
* core: grandpa: handle re-import of change blocks * core: grandpa: add test for change block reimport
-
Pierre Krieger authored
* Reduce the spam from network misbehaviours * Add protocol id to misbehaviour
-
- Feb 10, 2019
-
-
Michael Müller authored
* Replace unwrap with expect * Move expect to call sites * Bubble errors up and trap * Update wasm * Update invalid pointer * Remove test which makes problems in CI * Check for underflow
-