Skip to content
  1. Jan 30, 2020
    • Bastian Köcher's avatar
      Expose information about the extrinsic in the metadata (#4774) · 45938d80
      Bastian Köcher authored
      * Expose information about the extrinsic in the metadata
      
      This pr exposes some information about the extrinsic used in the runtime
      via metadata. The following information are exposed:
      
      - Version of the extrinsic
      - List of all signed extensions used by the extrinsic.
      
      * Increment `spec_version`
      45938d80
  2. Jan 29, 2020
  3. Jan 28, 2020
  4. Jan 27, 2020
  5. Jan 24, 2020
  6. Jan 23, 2020
  7. Jan 21, 2020
    • Hero Bird's avatar
      contracts: New contract events + unconfusions (#4685) · caa6efa5
      Hero Bird authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      * contracts: during execution -> contract trapped during execution
      
      This message confused many people so we are improving it to make clear what happened.
      
      * contracts: rename Event::Contract -> Event::ContractExecution
      
      * contracts: fix tests after ContractExecution renaming
      
      * contracts: Add Evicted and Restored events
      
      * fix doc comment
      
      * wrap to not go over (soft) 100 column line limit
      
      * add event deposit for eventual eviction upon pay_rent
      
      * contracts: adjust tests for the new events
      
      * emit Evicted event immediately and add tombstone flag bool
      caa6efa5
  8. Jan 20, 2020
  9. Jan 18, 2020
  10. Jan 17, 2020
  11. Jan 16, 2020
    • Svyatoslav Nikolsky's avatar
      Allow updating configuration of changes tries (#3201) · febf2939
      Svyatoslav Nikolsky authored
      
      
      * DigestItem::ChangesTrieSignal
      
      * introduce changes_trie::State
      
      * introduce config activation block
      
      * ChangesTrieSignal::as_new_configuration
      
      * moved well_known_cache_keys to client
      
      * extracted DbChangesTrieStorage to separate file
      
      * change meaning of none in blockchain cache
      
      * changes trie config (FULL) cache draft
      
      * eliminating const ChangesTrieConfiguration
      
      * delay pruning
      
      * continue elimination
      
      * do not prune CT config from cache
      
      * removed redundant code
      
      * fix some TODOs
      
      * introduce ConfigurationRange
      
      * use Configuration range in build
      
      * build skewed digest
      
      * remove debug print
      
      * extracted surface iterator
      
      * key_changes works with skewed digests
      
      * fix client build
      
      * add test for NeverPrune
      
      * fix TODO
      
      * fixed some TODOs
      
      * more tests
      
      * fixing TODOs
      
      * fixed compilation
      
      * update runtime version
      
      * git rid of large tuple
      
      * too long lines
      
      * config_activation_block -> zero
      
      * obsolete TODO
      
      * removed unjustified expect
      
      * update TODOs with issue number
      
      * new CT pruning algorithm
      
      fixed cache + multiple blocks finalization
      
      track CT configuraiton on light clients
      
      support CT configuration change revert
      
      revert CT config test
      
      new CT pruning algorithm
      
      fixed cache + multiple blocks finalization
      
      track CT configuraiton on light clients
      
      support CT configuration change revert
      
      revert CT config test
      
      * BlockIdOrHeader isn't really required
      
      * removed debug leftovers + some docs
      
      * more docs
      
      * more post-merge fixes
      
      * more post-merge fixes
      
      * revertes some unnecessary changes
      
      * reverted unnecessary changes
      
      * fix compilation + unnecessary changes
      
      * (restart CI)
      
      * fix cache update when finalizing multiple blocks
      
      * fixed tests
      
      * collect_extrinsics -> set_collect_extrinsics
      
      * restore lost test
      
      * do not calculate block number twice
      
      * Update primitives/blockchain/src/error.rs
      
      Co-Authored-By: default avatarcheme <[email protected]>
      
      * map_err -> unwrap_or
      
      * document get_at Result
      
      * delete abandoned file
      
      * added weight for set_changes_trie_config
      
      * prefer_configs -> fail_if_disabled
      
      * Update client/api/src/backend.rs
      
      Co-Authored-By: default avatarcheme <[email protected]>
      
      * Update client/db/src/changes_tries_storage.rs
      
      Co-Authored-By: default avatarcheme <[email protected]>
      
      * CommitOperation+merge -> CommitOperations
      
      * fixed test compilation
      
      * merged two different CTRange structs
      
      * lost file
      
      * uggrade db from v0 to v1 (init CT cache + add column)
      
      * fix after merge
      
      Co-authored-by: default avatarcheme <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      febf2939
    • Bastian Köcher's avatar
      Implement runtime version checks in `set_code` (#4548) · afc3318f
      Bastian Köcher authored
      * Implement runtime version checks in `set_code`
      
      Check that the new runtime code given to `set_code` fullfills some
      requirements:
      
      - `spec_name` matches
      - `spec_version` does not decreases
      - `impl_version` does not decreases
      - Either `spec_version` and `impl_version` increase
      
      * Make tests almost work
      
      * Some fixes after master merge
      
      * Fix tests
      
      * Add missed file
      
      * Make depedency check happy?
      
      * Remove leftover `sc-executor`
      
      * AHHHHH
      
      * Reset debug stuff
      
      * Remove some 'static
      
      * More 'static
      
      * Some docs
      
      * Update `Cargo.lock`
      afc3318f
    • thiolliere's avatar
      remove old test (#4637) · 28fada7d
      thiolliere authored
      28fada7d
  12. Jan 15, 2020
  13. Jan 14, 2020
  14. Jan 13, 2020
    • Shawn Tabrizi's avatar
      Additional zero bid logic for Society pallet (#4604) · 5c0bdd33
      Shawn Tabrizi authored
      * Select only one zero bid, better ordering of new bids
      
      * Select zero bid as head
      
      * Update comment
      
      * Update frame/society/src/tests.rs
      
      * Add new test, logic not updated yet
      
      * Implement `put_bid` to order same value bids
      
      Note that this extra logic currently does not do anything per the implementation of `binary_search` in Rust.
      5c0bdd33
    • Shawn Tabrizi's avatar
      A Social Account Recovery Pallet (#4531) · d16d5788
      Shawn Tabrizi authored
      * Initial sketch of social recovery pallet
      
      * Fix compilation issues
      
      * Use a single total delay, rename stuff
      
      * Check possible overflow
      
      * Copyright bump
      
      * Add mock for tests
      
      * Add basic end to end test
      
      * Add `create_recovery` tests
      
      * Add malicious recovery lifecycle test
      
      * Make clear we check for sorted and unique friends
      
      * Work on some tests, clean up imports
      
      * Change `if let Some(_)` to `ok_or()`
      
      * More tests
      
      * Finish tests, except issue with `on_free_balance_zero`
      
      * Fix `on_free_balance_zero`
      
      * Pallet docs
      
      * Add function/weight docs
      
      * Fix merge master
      
      * OnReapAccount for System too
      
      * Update weight docs
      
      * Allow passthrough to support fee-less extrinsics
      d16d5788
    • Kian Paimani's avatar
      Remove wrong assertion from phragmen (#4515) · 0cd8d2c2
      Kian Paimani authored
      * remove assertion
      0cd8d2c2
    • Gavin Wood's avatar
      Disable equalize, avoiding consensus issue (#4608) · 2597457a
      Gavin Wood authored
      
      
      * Disable equalize, avoiding consensus issue
      
      * Update frame/staking/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      2597457a
    • thiolliere's avatar
      Add translate function for storage prefixed map. (#4555) · 4de8d5ce
      thiolliere authored
      * translace values for prefixed storages
      
      * improve doc
      
      * new impl
      
      * update test
      4de8d5ce