1. Apr 24, 2019
    • Bastian Köcher's avatar
      Forward port blake2 storage support (#2360) · 0c1674b0
      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]>
      0c1674b0
  2. Apr 23, 2019
  3. Apr 19, 2019
  4. Apr 16, 2019
  5. Apr 15, 2019
    • DemiMarie-parity's avatar
      Add basic BABE consensus type (#2165) · dd2225d5
      DemiMarie-parity authored
      
      
      * Add basic BABE consensus type
      
      * Update core/consensus/babe/slots/Cargo.toml
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Fix parameterization and run `rustfmt`
      
      * Respond to review comments
      
      * Update various Cargo.lock files
      
      * Revert "Update various Cargo.lock files"
      
      This reverts commit af53d762
      
      .
      
      * `BabeSealSignature` → `BabeSeal`
      
      * Move slot code to its own crate
      
      This was highly non-trivial, due to cyclic dependencies.
      
      * Remove redundancy between AuRa and BABE
      
      Some of the code duplication was removed using a macro.
      
      * Fix build error
      
      * Avoid non-`#[doc(hidden)]` re-exports
      
      Also, bump some library versions in `Cargo.toml`.
      
      * Remove dead code in AuRa
      
      * Remove impl_slot macro
      
      It was more trouble than it was worth.
      
      Also, delete useless dependencies on Serde.
      
      * AuRa and BABE need different DB keys
      
      * Bring back `aura::Network`, but deprecate it.
      
      * Improve docs and add `slot_duration` inherent method
      
      * Add docs to `substrate_consensus_aura::SlotDuration`
      
      * Add missing documentation and #![forbid(missing_docs, unsafe_code)]
      
      * Add a #![forbid(missing_docs)]
      
      * Remove dependency of `test-runtime` on `slots`
      
      * Update core/consensus/babe/src/lib.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Remove wrongly added file
      
      * Fix copyright notice
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Bump `impl_version` and `spec_version`
      
      * Fix deprecation version; remove spurious carets
      
      * Update Cargo.lock
      
      * Update dependencies
      dd2225d5
  6. Apr 11, 2019
    • Andrew Jones's avatar
      Replace error-chain for client error (#2231) · d39e718f
      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
      d39e718f
    • Andrew Jones's avatar
      Introduce `ext_println` to contract runtime (#2239) · b5b5c328
      Andrew Jones authored
      * Implement `ext_println` in contract runtime
      
      * Only allow contracts to import `ext_println` on dev chains
      
      * Configure dev chain to allow contracts with `ext_println`
      
      * Increment spec version
      
      * Docs
      
      * Rename config to the more specific enable_println
      b5b5c328
  7. Apr 09, 2019
  8. Apr 06, 2019
  9. Apr 05, 2019
  10. Apr 04, 2019
  11. Apr 03, 2019
  12. Apr 02, 2019
  13. Apr 01, 2019
  14. Mar 29, 2019
    • DemiMarie-parity's avatar
      cb5d2f8f
    • Stanislav Tkach's avatar
      Move authorities interface from Core to consensus (#1412) · 1b98eaf4
      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
      1b98eaf4
    • Kian Peymani's avatar
      Extended Balance Type for Staking's Election (#2134) · a9cd1968
      Kian Peymani authored
      * First draft of extended balance type
      
      * Test cleanup.
      
      * Update staking docs.
      
      * Add a good failing test case for quintill
      
      * Bring back saturating.
      
      * Some final fixes
      
      * A few more.
      
      * Update wasm; Bump spec;
      
      * Re-bump.
      
      * Custom lossy conversion from currency to vote
      
      * remove print
      
      * Fix reverse conversion issue.
      
      * void. Re-trigger ci.
      a9cd1968
    • Gav Wood's avatar
      Proxy voting (#2137) · d36f00cd
      Gav Wood authored
      
      
      * Proxy voting in democracy
      
      * Proxy voting for council elections
      
      * Bump and build
      
      * Kill proxy when account dead
      
      * Rebuild wasm
      
      * Fix democraxy delegation locking
      
      * Update srml/council/src/seats.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      
      * Update to use mutate
      d36f00cd
    • Gav Wood's avatar
      Use a context prefix for SS58 hash (#2141) · 6efb74be
      Gav Wood authored
      * Update to final ss58 spec
      
      * Fix tests
      
      * Rebuild
      6efb74be
    • joe petrowski's avatar
      Convert all UK spelling to US (#2138) · 8bf08ca6
      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
      8bf08ca6
    • DemiMarie-parity's avatar
      Refactor DigestItem (#2108) · 8a60b684
      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
      8a60b684
    • Xiliang Chen's avatar
      allow trailling comma in decl_event (#2117) · d27c0676
      Xiliang Chen authored
      
      
      * allow trailling comma in decl_event
      
      * Update srml/support/src/event.rs
      
      Co-Authored-By: default avatarxlc <[email protected]>
      
      * Update srml/support/src/event.rs
      
      Co-Authored-By: default avatarxlc <[email protected]>
      
      * Update srml/support/src/event.rs
      
      Co-Authored-By: default avatarxlc <[email protected]>
      
      * Update srml/support/src/event.rs
      
      Co-Authored-By: default avatarxlc <[email protected]>
      
      * Update srml/support/src/event.rs
      
      Co-Authored-By: default avatarxlc <[email protected]>
      
      * bump version and update wasm
      d27c0676
  15. Mar 28, 2019
    • Arkadiy Paronyan's avatar
      Use prefixed keys for trie node. (#2130) · fd15825e
      Arkadiy Paronyan authored
      * Account for pending insertions when pruning
      
      * Prefixed trie storage
      
      * Comments
      
      * Prefixed trie storage
      
      * Fixed tests
      
      * Fixed tests
      
      * Bumped runtime version
      
      * Bumped runtime version again
      fd15825e
    • thiolliere's avatar
      storage doublemap in decl_storage (#1918) · f6a4b342
      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
      f6a4b342