Skip to content
  1. Jul 16, 2019
    • Jim Posen's avatar
      Contract storage limit (#3126) · 00053422
      Jim Posen authored and Sergey Pepyakin's avatar Sergey Pepyakin committed
      * srml-contracts: Remove hard-coded code hashes from tests.
      
      This makes it easier to update existing and add new test Wasm modules.
      
      * Test maximum contract storage write size.
      
      * Implement storage value limit for contracts.
      
      * Bump node runtime spec version.
      00053422
    • Svyatoslav Nikolsky's avatar
      Some changes tries optimizations (#2840) · f7489f0e
      Svyatoslav Nikolsky authored
      * changes tries initial optimizations
      
      * line width
      f7489f0e
    • Gavin Wood's avatar
      Introduce vesting offsets (#3094) · ca9f9e52
      Gavin Wood authored
      * Introduce vesting offsets
      
      Closes #3090
      
      * Fix logic
      
      * Bump impl verfsion
      
      * Initial rewrite of vesting
      
      * Test for liquidity with delayed vesting
      
      * Bump Spec, Fix line width
      
      * More line width fix
      
      * Small nit to documentation
      ca9f9e52
  2. Jul 15, 2019
  3. Jul 14, 2019
    • Pierre Krieger's avatar
      Improvements to the import queue (#3101) · fb9871a7
      Pierre Krieger authored
      * Remove block_imported
      
      * Move blocks results processing to sync
      
      * Remove methods from Link
      
      * Better errors
      
      * Allow cancelling the import queue
      
      * Restore the import trace
      
      * Fix network tests
      
      * Line widths
      
      * Use has_error instead
      
      * Minor style
      fb9871a7
  4. Jul 13, 2019
  5. Jul 12, 2019
    • Toralf Wittner's avatar
      Remove `sync::Context` trait. (#3105) · 5c22d05d
      Toralf Wittner authored
      Instead of passing a context around to each method, thereby introducing
      side-effecting I/O actions everywhere, with this PR `sync::ChainSync`
      only contains state which is updated by invoking various callback
      methods (`on_*`) and actionable items are returned as regular results
      from method calls, often iterators yielding requests that should be
      issued to peers. It is up to the caller to handle these in an
      appropriate way, currently `protocol` will send those as messages.
      5c22d05d
  6. Jul 11, 2019
  7. Jul 10, 2019
  8. Jul 09, 2019
    • thiolliere's avatar
      Make use of child storage for testExternalities and basicExternalities (#3009) · 0bc753ff
      thiolliere authored
      * impl test using both storage and child_storage
      
      * few fixes
      
      * remove unused code
      
      * impl PartialEq with children keys
      
      * fmt
      
      * implementation of basic with children + rename new
      
      * assert and test
      
      * no panic in runtime
      
      * address comments
      
      * fix
      0bc753ff
    • Max Inden's avatar
      Introduce flag to enable sentry nodes to participate in grandpa gossip (#3018) · cf5b132b
      Max Inden authored
      Given the following situation: A validator 'A' is not supposed to be
      connected to the public internet to protect it from e.g. a DoS attack.
      Instead it connects to a sentry node 'sentry-A' which connects to the
      public internet. Validator 'B' can reach validator 'A' via sentry node
      'sentry-A' and vice versa.
      
      A sentry node needs to participate in the grandpa gossip without
      becoming a validator itself in order to forward these message to its
      validator. This commit adds a new command line flag (`--grandpa-voter`)
      forcing a node to participate in the grandpa voting process even though
      no `--key` was specified. Due to the fact that it does not have a key,
      it does not become a validator in the network.
      
      In order to simulate the above situation this commit also adds a Docker
      Compose file (`scripts/sentry-node/docker-compose.yml`) with further
      documentation.
      cf5b132b
    • Gavin Wood's avatar
      Allow sub accounts to be derived from an TypeId. (#3039) · 180e30ea
      Gavin Wood authored
      * Allow sub accounts to be derived from an TypeId.
      
      * Deduplicate
      
      * Fix
      
      * Rephrase.
      180e30ea
    • Pierre Krieger's avatar
      Change the import queue traits to take &mut self instead of &self (#3058) · 3e6f9051
      Pierre Krieger authored
      * SharedFinalityProofRequestBuilder -> BoxFinalityProofRequestBuilder
      
      * SharedThings -> BoxThings
      
      * Fix tests
      
      * build_request_data now takes &mut self
      
      * The other traits now also take &mut self
      
      * More or less fix tests
      
      * Fix tests
      
      * Fix more tests
      
      * Moar tests
      
      * Don't call make_block_import multiple time
      
      * Fix doctest
      3e6f9051
    • Tomasz Drwięga's avatar
      [offchain] Support for sign & verify for crypto keys (#3023) · 4dc625ff
      Tomasz Drwięga authored
      * Implement sign & verify.
      
      * Use phrases and password.
      
      * Sign & verify with authority keys.
      
      * Fix tests.
      
      * WiP
      
      * WiP
      
      * Allow the caller to decide on 'CryptoKind'.
      
      * Remove TODO.
      
      * Make seed private back.
      
      * Fix non-std build and bump version.
      
      * Use Into<u32> instead of asses.
      
      * Add missing typedef.
      4dc625ff
    • André Silva's avatar
      srml: system: prune block hash mapping (#3062) · ef7587d9
      André Silva authored
      * srml: system: prune block number to hash mapping
      
      * srml: system: add test for block hash mapping pruning
      
      * node: bump runtime version
      
      * srml: system: wrap long line
      
      * srml: system: use parameter type for block hash count
      
      * srml: system: prune block hash mapping before storage root calculation
      
      * srml: system: keep the genesis hash in block number map
      ef7587d9
  9. Jul 08, 2019