1. May 14, 2019
  2. May 13, 2019
    • Joshy Orndorff's avatar
    • Svyatoslav Nikolsky's avatar
      Light GRANDPA import handler (#1669) · 22586113
      Svyatoslav Nikolsky authored
      * GrandpaLightBlockImport
      
      * extract authorities in AuraVerifier
      
      * post-merge fix
      
      * restore authorities cache
      
      * license
      
      * new finality proof draft
      
      * generalized PendingJustifications
      
      * finality proof messages
      
      * fixed compilation
      
      * pass verifier to import_finality_proof
      
      * do not fetch remote proof from light import directly
      
      * FinalityProofProvider
      
      * fixed authorities cache test
      
      * restored finality proof tests
      
      * finality_proof docs
      
      * use DB backend in test client
      
      * justification_is_fetched_by_light_client_when_consensus_data_changes
      
      * restore justification_is_fetched_by_light_client_when_consensus_data_changes
      
      * some more tests
      
      * added authorities-related TODO
      
      * removed unneeded clear_finality_proof_requests field
      
      * truncated some long lines
      
      * more granular light import tests
      
      * only provide finality proof if it is generated by the requested set
      
      * post-merge fix
      
      * finality_proof_is_none_if_first_justification_is_generated_by_unknown_set
      
      * make light+grandpa test rely on finality proofs (instead of simple justifications)
      
      * empty_finality_proof_is_returned_to_light_client_when_authority_set_is_different
      
      * missing trait method impl
      
      * fixed proof-of-finality docs
      
      * one more doc fix
      
      * fix docs
      
      * initialize authorities cache (post-merge fix)
      
      * fixed cache initialization (post-merge fix)
      
      * post-fix merge: fix light + GRANDPA tests (bad way)
      
      * proper fix of empty_finality_proof_is_returned_to_light_client_when_authority_set_is_different
      
      * fixed easy grumbles
      
      * import finality proofs in BlockImportWorker thread
      
      * allow import of finality proofs for non-requested blocks
      
      * limit number of fragments in finality proof
      
      * GRANDPA post-merge fix
      
      * BABE: pos-merge fix
      22586113
  3. May 10, 2019
    • André Silva's avatar
      Bump master to v2.0.0 (#2514) · 9d23d2a2
      André Silva authored
      * bump crates to v2.0.0
      
      * fix crate authors
      
      * bump node runtime spec_version
      
      * remove unused import for no-std
      9d23d2a2
    • thiolliere's avatar
      Allow modules to validate transaction, second attempt (#2463) · dfbaedd5
      thiolliere authored
      
      
      * first impl
      
      * rename origin::inherent to none
      
      * fix
      
      * fix
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * comment
      
      * better error
      
      * doc
      
      * (add unsigned module 🤦)
      
      * doc
      
      * fix
      
      * implement for node-template as well
      
      * add validated unsigned to executor
      
      * fix
      
      * fix
      
      * bump version
      
      * testing xt
      
      * remove extraneous logic
      
      * licence
      
      * impl test
      dfbaedd5
    • Benjamin Kampmann's avatar
      Allow for customisation of chain selection systems (#2240) · 18ca0170
      Benjamin Kampmann authored
      
      
      * move SelectChain trait out of client
      
      * Extend SelectChain, move longest chain implementation into it
      
      * Bring SelectChain into service
      
      * implement LongestChain SelectChain
      
      * implement longest chain for node
      
      * update Cargo.lock's
      
      * in between erroring tests
      
      * deprecate ::backend and ::import_lock
      
      * Remove unneded space
      
      Co-Authored-By: default avatargnunicorn <[email protected]>
      
      * Remove unneded space
      
      Co-Authored-By: default avatargnunicorn <[email protected]>
      
      * Fixes test compilation
      
      * remove todo
      
      * re-enable client test
      
      * add doc
      
      * fixing tests
      
      * Clarify SelectChain Interface, intended implementation and usage
      
      * minor components cleanups
      
      * minor cleanups
      
      * Update lock files
      
      * Implement cleaner interface for SelectChain
      
      * addressing comments
      
      * Updating tests
      
      * bump node runtime impl version
      
      * address grumbles
      18ca0170
  4. May 09, 2019
  5. May 06, 2019
    • Gavin Wood's avatar
      Clean up random seed to make a bit more flexible (#2456) · adba8991
      Gavin Wood authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      
      
      * Reformulate random seed to be more random
      
      - First 80 random values come from cycling the incomplete series (
        instead of filling with zeroes)
      - Calculate random material each usage (use a single amalgamated
        ring buffer to store them for avoiding 81 lookups each time)
      - Mutate inputs by hashing each with:
        - its index (into the 81)
        - an additional "subject" key provided by caller
      
      This keeps the final output low-influence while still allowing
      it to be used as the seed to independent contexts. (Hashing the
      result to give the final seed is no better than using parent_hash).
      
      * Docs
      
      * Bump runtime
      
      * Update notes
      
      * Remove feature(alloc)
      
      * Update srml/system/src/lib.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      adba8991
  6. May 01, 2019
  7. Apr 29, 2019
    • Bastian Köcher's avatar
      Cumulus changes version 2 (#2313) · bad3ce4e
      Bastian Köcher authored
      
      
      * ensure imbalances are properly accounted for (#2183)
      
      * ensure imbalances are properly accounted for
      
      * bump runtime version
      
      * Update node/runtime/src/lib.rs
      
      * implement contract events (#2161)
      
      * implement contract events
      
      * update runtime
      
      * renaming
      
      * update test code hash
      
      * improve complexity details
      
      * add deposit event base cost
      
      * add test
      
      * Revert "add deposit event base cost"
      
      This reverts commit 58ec010c0f4f4f0e16935ad41da32aedd17a8c57.
      
      * update test
      
      * Revert "update test"
      
      This reverts commit 6fe61a593ccf0d41f09a0b97472b28ed8751a999.
      
      * Revert "Revert "add deposit event base cost""
      
      This reverts commit 145e8a9bac15313a4c380aa66b94fd4d36fa3f6d.
      
      * Fix format a bit
      
      *  Replace Vec<u8> with [u8; 32] for contract storage key (#2184)
      
      * Replace Vec<u8> with [u8; 32] for contract storage key
      
      * Read storage keys from sandbox memory into fixed size buffer
      
      * Increment `impl_version`
      
      * Remove redundant Ok(()) and explicitly specify StorageKey buffer type (#2188)
      
      * Switch to `derive(Encode, Decode)` for `Call` (#2178)
      
      * Add some tests
      
      * More tests
      
      * Switch to `derive(Encode, Decode)` for `Call`
      
      * Update lock files
      
      * Simplify the macro cases
      
      * Cache changes trie config in db storage (#2170)
      
      * cache changes trie config in db storage
      
      * Update core/client/db/src/lib.rs
      
      Co-Authored-By: default avatarsvyatonik <[email protected]>
      
      * Update core/client/db/src/lib.rs
      
      Co-Authored-By: default avatarsvyatonik <[email protected]>
      
      * Fix version check for renamed runtime api methods (#2190)
      
      * Add feature to disable including the test-runtime wasm blob
      
      * Enable `std` feature for `consensus_authorities`
      
      * Implement `skip_initialize_block` and `initialize_block` for runtime api
      
      * Add test and fixes bug
      
      * Begin to implement support for passing the `ProofRecorder`
      
      * Make sure proof generation works as intended
      
      * Fixes tests
      
      * Make `BlockBuilder` generate proofs on request.
      
      * Adds `TestClientBuilder` to simplify creating a test client
      
      * Add `include-wasm-blob` to `test-client` as well
      
      * Make `test-client` compile without including the wasm file
      
      * Disable more stuff in test-client without wasm
      
      * Reorganize the re-exports
      
      * Use correct bounds
      
      * Update docs
      
      * Update core/client/src/block_builder/block_builder.rs
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      
      * Extend test to actually generated proof
      
      * Switch to enum for `skip_initialize_block`
      
      * Some wasm files updates
      bad3ce4e
  8. Apr 25, 2019
  9. Apr 24, 2019
    • Bastian Köcher's avatar
      Forward port blake2 storage support (#2360) · f0862606
      Bastian Köcher authored
      
      
      * move storage maps to blake2_128 (#2268)
      
      * remove default hash, introduce twox_128 and blake2
      
      * use blake2_128 & create ext_blake2_128
      
      * refactor code
      
      * add benchmark
      
      * factorize generator
      
      * fix
      
      * parameterizable hasher
      
      * some fix
      
      * fix
      
      * fix
      
      * fix
      
      * metadata
      
      * fix
      
      * remove debug print
      
      * map -> blake2_256
      
      * fix test
      
      * fix test
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * impl twox 128 concat (#2353)
      
      * impl twox_128_concat
      
      * comment addressed
      
      * fix
      
      * impl twox_128->64_concat
      
      * fix test
      
      * Fix compilation and cleanup some docs
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      f0862606
  10. Apr 23, 2019
  11. Apr 19, 2019
  12. Apr 16, 2019
    • Bastian Köcher's avatar
      Add `StorageValue::append` and speed-up `deposit_event` (#2282) · 72840bd7
      Bastian Köcher authored
      * Adds deposit event benchmark
      
      * Add `StorageValue::append`
      
      `StorageValue::append` can be used by types that implement `EncodeAppend` to speed-up situations where you just want to append
      an item to storage without wanting to decode all previous items.
      
      * Stay at 100 events
      
      * Fixes compilation
      
      * Use correct year and increase spec version
      72840bd7
  13. Apr 14, 2019
  14. Apr 12, 2019
  15. Apr 11, 2019
    • Andrew Jones's avatar
      Replace error-chain for client error (#2231) · 7f59cdb9
      Andrew Jones authored
      * WIP: convert client error
      
      * Remove error_chain for client error
      
      * Ignore tx-pool error deprecation warning
      
      * Update Cargo.lock files
      
      * Fix tests
      
      * Increment impl_version
      
      * Derive From impls, remove allow(missing_docs)
      
      * Remove space
      
      * Remove redundant into()s
      
      * Blockchain Error source
      
      * Bump impl version
      7f59cdb9
  16. Apr 10, 2019
  17. Apr 09, 2019
  18. Apr 03, 2019
  19. Apr 02, 2019
    • asynchronous rob's avatar
      Aura: add a deprecated method for seal compatibility (#2176) · f0c21815
      asynchronous rob authored
      * aura API defaults to rejecting old seals
      
      * build node-cli
      f0c21815
    • cheme's avatar
      no_std support for substrate trie (#2146) · 669e7918
      cheme authored
      * no_std trie compile in test_runtime (require to set nightly feature due
      to the way hashbrown currently works).
      
      * No nightly with hashmap_core.
      
      * using crate elastic-array
      
      * switch to publish trie crates
      
      * fix default array decl
      
      * bump impl_version for ci
      
      * set all semver when possible wasm, and remove redundant code.
      
      * Actually test use_trie function
      
      * impl version +1
      
      * Bump impl version
      669e7918
    • thiolliere's avatar
      skip phantom for decl_event (#2158) · 7e3b2d46
      thiolliere authored
      * use parity-codec-derive from parity-codec everywhere
      
      * codec v3.2 -> v3.3
      
      * skip phantom when deriving event
      
      * fix decl_module call
      
      * update impl version of node + builds
      7e3b2d46
    • Bastian Köcher's avatar
      Implement support for renaming runtime api functions (#2160) · 34514532
      Bastian Köcher authored
      * Implement support for renaming runtime api functions
      
      * Redelete the wasm files
      
      * FIxes test
      
      * Fix test correctly...
      
      * Bring back old `authorities`
      
      * Tag as deprecated
      
      * Fixes compilation on WASM
      
      * Add missing method implementations
      
      * Fixes tests
      
      * Increase `spec_version`
      34514532
  20. Apr 01, 2019
    • Gav Wood's avatar
      Bump version to 1.0.0 globally (#2149) · eca163ba
      Gav Wood authored
      * Bump versionb globally
      
      * Rebuild and fix
      
      * Rename fixes
      
      * Rebuild
      
      * Minor fix and code formatting for validator election
      
      * Fix tests
      
      * More test fixes
      
      * Fix several bugs in phragmen elections.
      
      * Rebuild, remove pointless closures
      eca163ba
  21. Mar 29, 2019
    • Stanislav Tkach's avatar
      Move authorities interface from Core to consensus (#1412) · cbfc36b3
      Stanislav Tkach authored
      * Move authorities interface from Core to consensus
      
      f
      
      * notify all caches of block insert + create with up-to-date best_fin
      
      * merged authorities_are_cached from light_grandpa_import2
      
      * Add ProvideCache trait
      
      * Create helper function for 'get_cache'
      
      * Fix some formatting
      
      * Bump impl version
      
      * Resolve wasm conflicts
      
      * Apply review comments
      
      * Use try_for_each
      
      * Move authorities interface from Core to consensus
      
      f
      
      * notify all caches of block insert + create with up-to-date best_fin
      
      * merged authorities_are_cached from light_grandpa_import2
      
      * Add ProvideCache trait
      
      * Create helper function for 'get_cache'
      
      * Fix some formatting
      
      * Bump impl version
      
      * Resolve wasm conflicts
      
      * Apply review comments
      
      * Use try_for_each
      
      * Move authorities interface from Core to consensus
      
      f
      
      * notify all caches of block insert + create with up-to-date best_fin
      
      * merged authorities_are_cached from light_grandpa_import2
      
      * Add ProvideCache trait
      
      * Create helper function for 'get_cache'
      
      * Fix some formatting
      
      * Bump impl version
      
      * Resolve wasm conflicts
      
      * Apply review comments
      
      * Use try_for_each
      
      * Increment impl_version
      
      * Update lib.rs
      cbfc36b3
    • joe petrowski's avatar
      Convert all UK spelling to US (#2138) · 0ddcbf74
      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
      0ddcbf74
    • DemiMarie-parity's avatar
      Refactor DigestItem (#2108) · a10e86ba
      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
      a10e86ba
  22. Mar 28, 2019
  23. Mar 27, 2019
  24. Mar 26, 2019
    • thiolliere's avatar
      improve docs (#2068) · 571d0943
      thiolliere authored
      
      
      * improve decl_storage instance doc
      
      * use decl_event doc accordignly
      
      * automate doc and while allow to extend it on event
      
      * some missed ones
      
      * Update srml/example/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Update srml/support/procedural/src/storage/transformation.rs
      571d0943
  25. Mar 25, 2019
    • Tomasz Drwięga's avatar
      Initial: Offchain Workers (#1942) · e2f5e408
      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
      e2f5e408