- Mar 29, 2019
-
-
Gav Wood authored
* Update to final ss58 spec * Fix tests * Rebuild
-
joe petrowski authored
* all the ise * forgot a misspelling * a few more replacements * bump impl * rollback and fixes * bump impl again * Add aliases for RPC * Update on_demand.rs
-
DemiMarie-parity authored
* Add `start_aura2`. * .gitignore patch conflict files and remove one that accidentally got committed * Fix build The tests still don’t work. * Fix compilation errors * Fix compile errors (again) * Try (and fail) to fix tests * Properly deserialize data Previously, `DigestItem::Consensus` had no separate `DigestItemType`, so it did not get properly serialized and deserialized. * Add extra debug logging. Always allow old seals. A `RUST_LOG=substrate_aura_consensus cargo test --all -- --nocapture \ tests::authoring_blocks` revealed that old seals were being and rejected, causing the test to hang. As a temporary debug measure, allow old seals unconditionally, so that CI can test if this fixes the problem. * Forcibly disable rejection of old seals * Use old trait, but newer serialization The old trait for `CompatibleDigestItem` actually worked. By changing its implementation, one can ensure that all *new* seals have the modern form, but *legacy* seals are still decoded correctly. * Bump impl version * Squash spurious deprecation warning `rustc` should not be emitting a deprecation warning in deprecated code, but it does, so silence it. * Rip out unused Cargo feature * Move AURA to aura_primitives * Respond to code review * Wrap overly-long line * Reduce logging verbosity and add target * Add dependency on `sr-primitives` to `aura_primitives` * Fix build It failed with a message about Cargo.lock being out of date. * core: aura: rename aura engine id const * core: aura: remove superfluous logging * core: primitives: add removed semicolons * core: aura: remove unused import * core: network: style fix * runtime: update wasm blobs * runtime: bump impl_version * core: primitives: tag all DigestItemType variants explicitly
-
Xiliang Chen authored
* allow trailling comma in decl_event * Update srml/support/src/event.rs Co-Authored-By: xlc <[email protected]> * Update srml/support/src/event.rs Co-Authored-By: xlc <[email protected]> * Update srml/support/src/event.rs Co-Authored-By: xlc <[email protected]> * Update srml/support/src/event.rs Co-Authored-By: xlc <[email protected]> * Update srml/support/src/event.rs Co-Authored-By: xlc <[email protected]> * bump version and update wasm
-
- Mar 28, 2019
-
-
thiolliere authored
* factorization * introduce GenericUnhashedStorage * implement generator and storage * impl double map in storage macro * improve StorageDoubleMapXX methods * remove storage from example and impl test * remove old comments * wasm compatible * improve imports * rename storages * update runtime impl version * make code less verbose * impl hash config for second key in double map hash available are all of Hashable trait * use double map in decl_storage for contract * fix double map config issue * add hasher into metadata * update impl version and build wasm * doc * add attrs * update metadata version * update runtime version * fix unused storage
-
Gav Wood authored
* Timestamp period should be expressed as expected period * Fix test * Ensure value never illegal * Rename * Remove println * Add default * Comment * Fix, bump and rebuild wasm * Fix test * Add TODOs * Configure only minimum_period. * Fix * Update srml/timestamp/src/lib.rs Co-Authored-By: gavofyork <[email protected]> * Update srml/timestamp/src/lib.rs Co-Authored-By: gavofyork <[email protected]>
-
thiolliere authored
* decouple contract from balance * update impls and builds * set fees in contract module * builds
-
- Mar 27, 2019
-
-
Gav Wood authored
* Fix subtle indices bug * Also fix balances divide by zero.
-
Shawn Tabrizi authored
* Introduce `ReservableCurrency` * Update Docs for `ReservableCurrency` * Update Tests * Bump spec and rebuild wasm * Extra: Add a note to `slash()` Discussion in Riot clarified the behavior of `slash()` and `can_slash()`. Trying to sneak clarifying comments about it into this PR * Update lib.rs * Don't drop the periods! CC @shawntabrizi
-
- Mar 26, 2019
-
-
Kian Peymani authored
* Improve a few doc string * Replace overflow-prone operation with saturating. * Remove whitespace. * Update wasm; Bump spec; * Bump impl again. * Fix review comments.
-
- Mar 25, 2019
-
-
André Silva authored
* srml: consensus: kill storage items * srml: consensus: add test for set and kill storage * runtime: bump spec_version update wasm blobs
-
Tomasz Drwięga authored
* Refactor state-machine stuff. * Fix tests. * WiP * WiP2 * Service support for offchain workers. * Service support for offchain workers. * Testing offchain worker. * Initial version working. * Pass side effects in call. * Pass OffchainExt in context. * Submit extrinsics to the pool. * Support inherents. * Insert to inherents pool. * Inserting to the pool asynchronously. * Add test to offchain worker. * Implement convenience syntax for modules. * Dispatching offchain worker through executive. * Fix offchain test. * Remove offchain worker from timestamp. * Update Cargo.lock. * Address review comments. * Use latest patch version for futures. * Add CLI parameter for offchain worker. * Fix compilation. * Fix test. * Fix extrinsics format for tests. * Fix RPC test. * Bump spec version. * Fix executive. * Fix support macro. * Address grumbles. * Bump runtime
-
Gav Wood authored
* bond_extra should be authorised only from stash, lest the controller gets compromised. * Fix tests * Fix grumbles * Pass compact balances
-
thiolliere authored
-
- Mar 23, 2019
-
-
Xiliang Chen authored
* expose linked map info to metadata * Make it non breaking change * another way * change to option 1 * bump metadata version * fix test * bump version and update wasm
-
Gav Wood authored
-
- Mar 22, 2019
-
-
Kian Peymani authored
* initial doc for the staking module * Remove md style links. * Remove todos. * Add rust code types * Rename and fix review notes. * Add new md file * Final touches. * Migrate compleatly to rustdoc * Update link * Fix heading * Final touches wrt the new template. * Remove empty prereq. * Fix more reviews * Some final nits. * Fix some side issues. * Fix another set of reviews * Fix + stabilize leftover reivews. * Remove unused test parameters * Fix typo. * Merge redundant loops * Adds phantom self-vote * Fix broken tests. * Refactor some names to match the reference. * Remove redundant inner loops from election round. * Introduce phragmen post-processing. * Some fixes and todos. * Fix some tests with new phragmen params * Fix test * Bump spec * Fix wasm build * Fix tests and phragmen fallback. Avoid double-controlling * Fix and rebuild wasm * Whitespaces, whitespaces everywhere. * Rebuild * Disable post-processing. * Identify by stash, not controller account. * Couple of fixes * Fix first test * Fix invulnerability_should_work * Fix a couple more tests * Fix more tests * Fix more tests * Fix more tests * Fix some tests * Fix update-ledger. * Fix update-ledger. * Fix another test * Fix another test * Fix rest of staking tests * Remove printlns * Rebuild wasm * Fix & tests for auth/val syncing * Fix up threading for tests * Remove superfluous asserts
-
cheme authored
-
- Mar 21, 2019
-
-
Gav Wood authored
* Rebuild, add a couple of tests and fix theoretical issue * Update lib.rs
-
- Mar 20, 2019
-
-
* Be a little safer with total issuance. * PairT instead of _Pair * Remove rev causing upset * Remove fees stuff. * Fix build (including tests) * Update runtime, bump version * Fix * Handle gas refunds properly. * Rename identifier ala #2025 * Address grumbles * New not-quite-linear-typing API * Slimmer API * More linear-type test fixes * Fix tests * Tidy * Fix some grumbles * Keep unchecked functions private * Remove another less-than-safe currency function and ensure that contracts module can never create cash. * Address a few grumbles and fix tests
-
- Mar 19, 2019
-
-
thiolliere authored
remove lazy and compute prefix at compile time
-
- Mar 18, 2019
-
-
Marcio Diaz authored
* feat: add on-chain delegation voting * fix: add recursion limit to delegated_votes * fix: tests * fix: count votes before limit exceeded
-
Shawn Tabrizi authored
* Remove upgrade-key from SRML. Update chain spec builder text * bump spec_version, rebuild wasm * Remove upgrade-key from SRML. Update chain spec builder text * bump spec_version, rebuild wasm * Rebase, Rebuild * Rebuild wasm
-
thiolliere authored
* fix instance event indexing breakage * fix infinite loop * update runtime impl version, and builds * Revert "Remove unnecessary restrictions in executive module (#2024)" This reverts commit 91fa6594.
-
- Mar 15, 2019
-
-
thiolliere authored
* first implementation * remove done comment * origin done * impl log for instance * impl inherent for instance * Fix wasm build + full example build this requires parity codec implements codec for core::marker::PhantomData * patch parity-codec link to github branch * improve internal names and fix instance prefix * Fix in macros * add test modules for support this allow to test for construct_runtime as well. The reason to have put that in another crate is: * if we put test in `tests/` dir of srml/support then decl_storage fails to get srml-support access because it believes it is inside srml-support crate and so derive access to `quote!{ crate }` but this is wrong (and I don't see any way to prevent that, and it only bother us so I don't think that matters that much) * if we put test inside lib.rs then contruct_runtime cannot be used because it call some macros that are defined with macros (decl_outer_event and decl_outer_origin) and thus rustc complains. * defaultinstance to its own struct to avoid errors * enforce <T, I> for Event and Config, impl test * add origin, log, inherent to test * test more code generation * basic storage test * fix typo * rename a few imports and field * delete wip test in example and runtime * change default prefix to make it backward compatible with test * rename Instance to I and Instantiable to Instance note: the name of generic parameter I is only enforce by decl_module! and this could be rewritten * doc * clean old TODOs * update parity-codec to 3.2 * update node impl version + builds * fix warning * fix unrelated grandpa test * refactor code
-
- Mar 14, 2019
-
-
Bastian Köcher authored
* Adds benchmark for direct/indirect wasm function calls * Store the benchmark function pointer in a `Cell` * Add some documentation * Make function implementations exchangeable * Add parachain stub * Add macro for registering the `validate_block` function * Make all functions replace-able by unimplemented * Some more refactoring * Adds tests for executing empty parachain block * Work on a new test with empty witness data * Don't exchange `ext_print_*` stuff * Some cleanup and one more function for `validate_block` * More tests and more functions * Fixes after merging master * Use `parity-codec` `derive` feature * CHange implementation of `wasm-nice-panic-message` * Move `parachain` stuff to cumulus * Updated wasm files * Integrate feedback * Switch to `ExchangeableFunction` struct * More fixes * Switch to Cell and panic on multiple replaces * Increase `impl_version` * Fix shifting * Make the API more verbose of `ExchangeableFunction` * Increase `impl_version`
-
Kian Peymani authored
* adds first draft phragmen with tuned tests and sr-primitives * fix a few docs and code styles * clean, organize and finish remaining test cases * more and more tests * update edge cases behavior and relavent tests * fix global test issues * updated wasm files * all tests fixed * cleanup * fix some global issues * fix global tests * bump versions * fix typo * first step toward extracting phragmen * Fix most of the grumbles. * fix rest of the grumbles * spaces to tabs * update wasm * Removed nightly feature. * More tests * Fix broken tests. * Bump and update wasm.
-
- Mar 13, 2019
-
-
Gav Wood authored
* Rijig to Ristretto * Rebuild wasm * adds compatibility test with the wasm module * Add Ed25519-BIP39 support * Bump subkey version * Update CLI output * New keys. * Standard phrase/password/path keys. * Subkey uses S-URI for secrets * Move everything to use new HDKD crypto. * Test fixes * Ignore old test vector. * fix the ^^ old test vector. * Fix tests * Test fixes * Cleanups * Fix broken key conversion logic in grandpa CC @rphmeier * Remove legacy Keyring usage * Traitify `Pair` * Replace Ed25519AuthorityId with ed25519::Public * Expunge Ed25519AuthorityId type! * Replace Sr25519AuthorityId with sr25519::Public * Remove dodgy crypto type-punning conversions * Fix some tests * Avoid trait * Deduplicate DeriveJunction string decode * Remove cruft code * Fix test * Minor removals * Build fix * Subkey supports sign and verify * Inspect works for public key URIs * Remove more crypto type-punning * Fix typo * Fix tests
-
- Mar 07, 2019
-
-
Gav Wood authored
* Make subkey support Sr25519 crypto. * Rebuild runtime. * Build and rejig locks. * Fix grumbles * Derivations * Introduce tests
-
- Mar 06, 2019
-
-
Bastian Köcher authored
-
Gav Wood authored
* Clean up session key rotation * Fix build * Bump version * Introduce feature to balances. * Move staking locking logic over to central point * ^^^ rest * First part of assimilation * More assimilation * More assimilation * Fix most tests * Fix build * Move Balances to new locking system * :q! * Bump runtime version * Build runtime * Convenience function * Test fix. * Whitespace * Improve type legibility. * Fix comment. * More tests. * More tests. * Bump version * Caps * Whitespace * Whitespace * Remove unneeded function.
-
- Mar 05, 2019
-
-
asynchronous rob authored
Co-authored-by: André Silva <[email protected]> * skeleton for finality tracker * dispatch events when nothing finalized for a long time * begin integrating finality tracker into grandpa * add delay field to pending change * add has_api_with function to sr_version for querying APIs * partially integrate new force changes into grandpa * implement forced changes * get srml-grandpa compiling * Update core/finality-grandpa/src/authorities.rs Co-Authored-By: rphmeier <[email protected]> * Update core/finality-grandpa/src/authorities.rs Co-Authored-By: rphmeier <[email protected]> * Update core/finality-grandpa/src/authorities.rs Co-Authored-By: rphmeier <[email protected]> * remove explicit dependence on CoreApi * increase node runtime version * integrate grandpa forced changes into node runtime * add some tests to finality-tracker * integrate finality tracking into node-runtime * test forced-change logic * test forced changes in the authority-set handler * kill some unneeded bounds in client * test forced-changes in finality-grandpa and fix logic * build wasm and finality-tracker is no-std * restart voter on forced change * allow returning custom error type from lock_import_and_run * extract out most DB logic to aux_schema and use atomic client ops * unify authority set writing * implement set pausing * bump runtime version * note on DB when we pause. * core: grandpa: integrate forced changes with multiple pending standard changes * core: grandpa: fix AuthoritySet tests * runtime: bump impl_version * core: clear pending justification requests after forced change import * srml: finality-tracker: use FinalizedInherentData * core: log requests for clearing justification requests * core, node: update runtimes * core: grandpa: fix tests * core: grandpa: remove todos and add comments * core: grandpa: use has_api_with from ApiExt * core: fix tests * core: grandpa: remove unnecessary mut modifier * core: replace PostImportActions bitflags with struct * core: grandpa: restrict genesis on forced authority set change * core: grandpa: add more docs * core: grandpa: prevent safety violations in Environment::finalize_block * core: grandpa: register finality tracker inherent data provider * core: grandpa: fix tests * node: update runtime blobs * core: grandpa: remove outdated todo * core: aura: fix typo in log message * core: grandpa: check re-finalization is on canonical chain * srml: finality-tracker: fix initialization * node: update runtime wasm * srml: finality-tracker: don't re-initialize config keys
-
Hero Bird authored
* Make use of parity-codec "derive" crate feature * Bump impl_version * Update wasm files and Cargo.lock files * Transferred to parity_codec derive feature for the rest of the crates * Update wasm binaries and lock files * Update core and node wasm binaries
-
- Mar 04, 2019
-
-
Gav Wood authored
* Clean up session key rotation * Fix build * Bump version
-
thiolliere authored
-
thiolliere authored
* force build closure in decl_storage! to return explicit type * fix when type was different Note: it breaks API but it is easy to upgrade: just do the conversion from encode type to the final type yourself in the build closure: ```rust Encode::using_encoded(&value, |mut value| Decode::decode(&mut v)).unwrap(); ```
-
- Mar 02, 2019
-
-
Gav Wood authored
* First steps to stash/controller separation * More drafting * More drafting * Finish draft. * Optimisation * Remove accidental commit * Make it build. * Fix linked map for traits. * Fix Option<_> variant. * Improve naming a tad * Rebuild runtime * Builds! * First test. * Bump RT version * Minor fix * Update Mock * adds the correct reward testcase (+staking eras which was already ok) * fixes the basic staking testcase to work properly (along with a small fix in the module) * New logic to avoid controller transferring stash. * Fix some build issues. * adding some comments to tests * Fix impls. * adds a few more lines to explain the test case * More fixes. * gets the basic test up and running again * Fix rest of build * Rebuild wasm * Fix docs. * fix staking test with new chnages * updating some tests, pending questions * More working tests * adds double staking test * Docs * remove invalid slashing test * Payee stuff. * Fix build * Docs * Fix test * Fix a couple of tests * Layout plan for finishing tests before Pragmen * Add some working tests * re-build staking and reward tests * Add more tests * fix offline grace test * Nominator should have payee checked for cleanup * adds more nomination tets * adds validator prefs tests * Fix and clean up some TODOs * Fix a couple of issues * Fix tests * noting warnings from tests * final fix of local tests * Fix slot_stake bug * Half baked test * Add logic to limit `unstake_threshold` set in storage * Make sure to check before writing! Almost forgot this one * Move a couple of comments * fix last broken slot_stake test * Ignore broken test
-
- Mar 01, 2019
-
-
thiolliere authored
-
- Feb 28, 2019
-
-
thiolliere authored
* fix macro error when no event * update impl version
-
- Feb 26, 2019
-
-
thiolliere authored
* replace some encode by using_encoded * update runtime * improve readibility
-