1. Mar 31, 2019
  2. Mar 30, 2019
  3. 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
      f...
      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
  4. Mar 28, 2019
    • Tomasz Drwięga's avatar
      Fix a race conditon in the pool when transactions are imported during pruning. (#2136) · c767d102
      Tomasz Drwięga authored
      * Store recently pruned tags to avoid re-importing transactions.
      
      * Update core/transaction-pool/graph/src/base_pool.rs
      
      * Update core/transaction-pool/graph/src/base_pool.rs
      
      * Update core/transaction-pool/graph/src/base_pool.rs
      
      * Update base_pool.rs
      c767d102
    • 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
    • Arkadiy Paronyan's avatar
      Track peers in network-libp2p (#2135) · 6f1adbcc
      Arkadiy Paronyan authored
      6f1adbcc
    • Gav Wood's avatar
      Ensure timestamp config makes sense. (#2132) · dc3969e7
      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: default avatargavofyork <[email protected]>
      
      * Update srml/timestamp/src/lib.rs
      
      Co-Authored-By: default avatargavofyork <[email protected]>
      dc3969e7
    • thiolliere's avatar
      Decouple contract from balances (#2081) · d50c973a
      thiolliere authored
      * decouple contract from balance
      
      * update impls and builds
      
      * set fees in contract module
      
      * builds
      d50c973a
  5. Mar 27, 2019
  6. Mar 26, 2019
  7. Mar 25, 2019
    • André Silva's avatar
      srml: consensus: kill storage (#2098) · c7b73a1a
      André Silva authored
      * srml: consensus: kill storage items
      
      * srml: consensus: add test for set and kill storage
      
      * runtime: bump spec_version update wasm blobs
      c7b73a1a
    • Tomasz Drwięga's avatar
      Initial: Offchain Workers (#1942) · a30d6a1a
      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
      a30d6a1a
    • Gav Wood's avatar
      bond_extra should be authorised only from stash (#2096) · a4204129
      Gav Wood authored
      * bond_extra should be authorised only from stash, lest the controller
      gets compromised.
      
      * Fix tests
      
      * Fix grumbles
      
      * Pass compact balances
      a4204129
    • André Silva's avatar
      core: cli flag to disable grandpa (#2105) · 2ba93e31
      André Silva authored
      * core: cli flag to disable grandpa
      
      * core: fix test service configuration
      
      * Update core/service/test/src/lib.rs
      2ba93e31
    • thiolliere's avatar
      9feab5c9
    • Pierre Krieger's avatar
      Forgot to handle Banned in inject_connected (#2107) · 98f12f19
      Pierre Krieger authored
      * Forgot to handle Banned in inject_connected
      
      * Also add debug for the state
      98f12f19
    • Arkadiy Paronyan's avatar
      CLI option to enable authoring when offline (#2104) · 2f135205
      Arkadiy Paronyan authored
      
      
      * CLI option to enable authoring when offline
      
      * Update core/service/src/config.rs
      
      Co-Authored-By: default avatararkpar <[email protected]>
      2f135205
  8. Mar 24, 2019
  9. Mar 23, 2019
  10. Mar 22, 2019
    • Kian Peymani's avatar
      Self-Vote for Staking (among others.) (#2078) · 3628a932
      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
      3628a932