Skip to content
  1. Aug 01, 2019
    • Niklas Adolfsson's avatar
      feat: split rewarding and slashing · 332626a3
      Niklas Adolfsson authored
      This commit splits the `DoSlash` trait in two traits: `DoReward` and `DoSlash`
      
      The reasons for it, is that we want reward based on the `total slashed amount`
      but the entire amount doesn't necessarily be rewarded. Some part of the total
      slashed amount might need to transmitted to some other part such as
      `treasory`.
      
      Thus, instead we return the total slash and `ReportSlashing` has to determine
      what to do with the total slashed amount.
      
      In other words, the concrete misconduct type determines what to do.
      332626a3
  2. Jul 31, 2019
  3. Jul 30, 2019
  4. Jul 29, 2019
  5. Jul 28, 2019
    • Pierre Krieger's avatar
      Clean up the basic-authorship crate (#3206) · a08d7ce1
      Pierre Krieger authored
      * Switch consensus-common to new futures
      
      * Fix tests
      
      * More tests fixing
      
      * Make Proposer, OnSlot and SyncOracle mut
      
      * Make the Environment mut as well
      
      * Fix test
      
      * Fix Babe tests
      
      * Babe fixes
      
      * Fix CLI service tests
      
      * Fix Babe tests
      
      * Remove unnecessary trait bound
      
      * Inline the code of BlockBuilder and AuthoringApi
      
      * Remove warning lint
      
      * Bounds simplification
      
      * Imports simplification
      
      * Don't panic on bad generated block
      
      * Code style
      
      * Add doc example
      
      * Remove dependency on aura
      
      * Order dependencies alphabetically
      
      * Minor style
      a08d7ce1
  6. Jul 27, 2019
  7. Jul 26, 2019
    • Denis_P's avatar
      Fixed debug flags (#3215) · 00762503
      Denis_P authored
      * fixed debug flags
      
      * test everything works
      
      * test everything works 2
      
      * sections are rewritten
      
      * everything works
      00762503
    • DemiMarie-parity's avatar
      Update dependencies (#3140) · 2acacb94
      DemiMarie-parity authored
      2acacb94
    • André Silva's avatar
      node: Update BABE protocol parameters (#3211) · cae69836
      André Silva authored
      * node: update babe parameters to target 6 second block time
      
      * node: add comment on MILLISECS_PER_BLOCK constant
      cae69836
    • Pierre Krieger's avatar
      Import queue steps (#3159) · 855ad098
      Pierre Krieger authored
      * Switch consensus-common to new futures
      
      * Fix tests
      
      * More tests fixing
      
      * Pass the block_import by value when importing
      
      * Rewrite the multi-blocks import as a future
      
      * Add some comments
      
      * Add a delay between each block
      
      * Fix Babe tests
      
      * Reverse white space change
      855ad098
    • Denis_P's avatar
      WIP: Subkey docker image (#3183) · 4b18dafc
      Denis_P authored
      * WIP to release subkey im docker
      
      * debug run with publishing
      
      * debug build
      
      * debug build 2
      
      * easier sync
      
      * fix the template
      
      * fix typo
      4b18dafc
    • André Silva's avatar
      Use milliseconds for timestamp resolution (#3210) · 3138dd6c
      André Silva authored
      
      
      * node: tabify constants file
      
      * node: define minimum period and slot duration in milliseconds
      
      * core: srml: use milliseconds for timestamp resolution
      
      * core: update slot_duration to millis in tests
      
      * node: bump spec_version
      
      * node: fix integration test
      
      * node: fix executor test
      
      * Update node/runtime/src/lib.rs
      
      Co-Authored-By: default avatarKian Peymani <[email protected]>
      
      * node: fix docs on timestamp resolution
      
      * node: add docs on u64 for millis
      3138dd6c
  8. Jul 25, 2019
    • Michael Müller's avatar
      Handle local storage race conditions better (#3177) · 81c7f855
      Michael Müller authored
      * Make local_storage_compare_and_set take Option for old_value
      
      * Adapt srml/im-online to API changes
      
      * Bump version
      
      * Bump version again
      
      * Replace match
      81c7f855
    • Sergey Pepyakin's avatar
      Fair reusing of wasm runtime instances (#3011) · f2571e8e
      Sergey Pepyakin authored
      * Add test from original bug report
      
      Original is from @pepyakin
      
       in 3d7b27f3421818e8d6de568e02fbc2947a06246b.
      I adapted it to work with the latest master.
      
      * No longer cleanup module instance
      
      * Replace runtime cache with synchronous clone
      
      * Fix test
      
      * Preserve initial runtime memory and restore it on fetch
      
      * Remove leftover comment
      
      * Fix style
      
      * Improve variable naming
      
      * Replace get_into() with get()
      
      * Handle missing memory export better
      
      * Return earlier when creating runtime first time
      
      * Improve comments
      
      * fmt
      
      * Fix #2967.
      
      * Eradicate `code` from `Error::InvalidCode`
      
      * tidy
      
      * A state snapshot doc.
      
      * Store multiple runtimes by hash.
      
      * Get rid of deref.
      
      * Docs
      
      * Use Self for instantiate_module
      
      * REVERT ME
      
      * Should be ok
      
      * Commit
      
      * Remove dbg
      
      * Use fast-memory's erase
      
      * Clean and undo hacks.
      
      * Introduce a dedicated error for heap_base
      
      * Ban the start function.
      
      * Clean, docs and refactor
      
      * Add rustflags.
      
      * Update Cargo.lock
      
      * Apply Basti's suggestions
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Rename allocates_huge_stack_array
      
      * Extend TestClientBuilder with set_heap_pages
      
      * Update the test.
      
      * Update core/executor/src/wasm_executor.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/executor/src/wasm_runtimes_cache.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/executor/src/error.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/executor/src/error.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Fix tests.
      
      * Update cargo-lock
      
      * Use wasmi master
      
      * Use master wasmi
      
      * Move tests.
      
      * Use wasmi crates.io
      
      * Update Cargo.lock
      
      * Fix build.rs
      
      * Bump runtime version
      
      * Revert initial_heap_pages renaming
      
      * Bump wasmi up to 0.5.0
      
      * Bump runtime version
      
      * Don't restore an instance every now and then
      
      * Update core/executor/src/wasm_runtimes_cache.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Propagate error in CacheError
      
      * Clarify the get_heap_base call in instantiation
      
      * Supply --export=__heap_base
      
      See https://reviews.llvm.org/D62744
      
      
      
      Co-authored-by: default avatarJim Posen <[email protected]>
      
      * Bump version.
      
      * Use combinators for segments.
      
      * Fix build.rs
      
      * Fix build.rs for runtime-test
      f2571e8e
    • André Silva's avatar
      srml: staking: track session index of current era start (#3203) · d4554b37
      André Silva authored
      * srml: staking: track session index of current era start
      
      * node: bump spec_version
      d4554b37
    • Niklas Adolfsson's avatar
      fix bad merge · c7569a1b
      Niklas Adolfsson authored
      c7569a1b