1. Oct 22, 2019
  2. Oct 21, 2019
    • CrocdileChan's avatar
      use ThreadPool to execute spawn_worker(fn) (#3836) · 60d232c7
      CrocdileChan authored
      * use ThreadPool to spawn_worker()
      
      * use ThreadPool to implement spawn_worker(fn)
      
      * use ThreadPool to implement spawn_worker(f)
      
      * update [dependencies] threadpool and num_cpus version
      
      *  rm 'extern crate num_cpus'
      
      * cargo.lock update
      
      *  merge the newest cargo.lock
      
      * Update Cargo.lock
      
      * use Mutex to wrap OffchainWorkers.thread_pool
      
      * format use crate
      
      * use parking_lot::Mutex instead of std::sync::Mutex
      60d232c7
  3. Oct 20, 2019
  4. Oct 19, 2019
    • Caio's avatar
      It's Clippy time (#3806) · f5162edc
      Caio authored
      Fix some Clippy issues
      f5162edc
    • Andrew Dirksen's avatar
      470b6236
    • Ashley's avatar
      Move sr-arithmetic to a new crate and add in a fuzzer (#3799) · 141a64cf
      Ashley authored
      
      
      * Split up sr_arithmetic.rs
      
      * Add some basic fuzzing
      
      * Add more tests
      
      * Add printing to fuzzing
      
      * Clean things up
      
      * Remove arbitrary
      
      * Remove comments
      
      * More cleaning, fix small error that was causing a panic
      
      * Add rational128
      
      * Remove old random tests
      
      * introduce panic
      
      * fuzzing should panic properly
      
      * Bit of cleanup
      
      * Add a test uncovered via fuzzing that fails!
      
      * Few small changes
      
      * Move sr-arithmetic to its own crate
      
      * Fix fuzzing
      
      * Got rid of fuzzer Cargo.lock
      
      * Added no_std
      
      * re-export assert_eq_error_rate
      
      * bump impl and spec version
      
      * re add convert into
      
      * Add an ignore to the test
      
      * Enabled benchmarking
      
      * Reindent
      
      * Clean up biguint fuzzer
      
      * Clean up biguint more
      
      * shuffle sr-primitives/traits about
      
      * Remove unused dependencies
      
      * Apply clippy suggestions
      
      * upgrade primitive-types versions
      
      * Run tests against num-bigint
      
      * Get rid of allocation in assert_biguints_eq
      
      * Add an optimisation to multiply_by_rational
      
      * rename parts_per_x -> per_things
      
      * Change fuzzer cargo.toml
      
      * Remove allocation from BigUint PartialEq impl
      
      * Remove accidental indentation
      
      * Renmove Lazy and Convert traits
      
      * Copy assert_eq_error_rate macro back to sr-primitives
      
      * Add documentation to fuzzers
      
      * fix sr-primitives assert_eq_error_rate
      
      * add cfg(test)
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update core/sr-arithmetic/fuzzer/src/biguint.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Allow rounding up in rational128
      
      * Make changes to biguint.rs
      
      * Update core/sr-arithmetic/src/traits.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Final touches
      
      * Convert to num_bigint::BigUint to compare
      
      * remove unused mut
      
      * more small changes
      
      * shuffle sr-primitives trait imports
      
      * more code review
      
      * move assert_eq_error_rate to lib.rs
      
      * Update core/sr-arithmetic/fuzzer/src/biguint.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Get rid of S
      
      * Simplify rational128 honggfuzz link
      
      * Insignificantly change rational128 fuzzing code
      
      * Slightly tidy up some of the arithmetic logic
      
      * Get rid of sr_arithmetic again(?) and fix sr-primitives/weights
      
      * Apply updates to sr_arithmetic.rs to crate
      141a64cf
  5. Oct 18, 2019
    • André Silva's avatar
      grandpa: pluggable voting rules (#3673) · 356015e4
      André Silva authored and asynchronous rob's avatar asynchronous rob committed
      * grandpa: support pluggable custom voting rules
      
      * grandpa: add docs to grandpa voting rule
      
      * grandpa: make voting rule mandatory
      
      * grandpa: add test for voting rule
      
      * node: add GRANDPA voting rule
      
      * grandpa: pass backend to VotingRule
      
      * core: fix docs in SelectChain::finality_target
      
      * grandpa: implement 3/4 of unfinalized chain restriction as voting rule
      
      * grandpa: rename AlwaysBehindBestBlock voting rule
      
      * grandpa: fix tests
      
      * grandpa: remove useless test
      
      * grandpa: extend environemnt voting rule test
      
      * grandpa: add proofs to unreachable statements
      
      * grandpa: fix typo
      
      * grandpa: fix docs
      356015e4
    • Svyatoslav Nikolsky's avatar
      Support block revert operation in blockchain cache (#3401) · 35f8cd19
      Svyatoslav Nikolsky authored
      * support block revert operation in cache
      
      * #[cfg(test)] -> fn unused_sink()
      
      * swap conditions
      
      * post-merge fix
      35f8cd19
    • Ximin Luo's avatar
      Make build work with rustc 1.37 stable and RUSTC_BOOTSTRAP=1 (#3844) · b618d8f0
      Ximin Luo authored
      * Make build work with rustc 1.37 stable and RUSTC_BOOTSTRAP=1
      
      * Bump versions to run CI
      b618d8f0
    • Arkadiy Paronyan's avatar
      Persist block announcements (#3826) · 3963bb58
      Arkadiy Paronyan authored
      * Persist block announcements
      
      * Renamed sync requests to fork targets
      
      * Fixed pruning detection condition
      3963bb58
    • Bastian Köcher's avatar
    • Max Inden's avatar
      core/finality-grandpa: Minor refactorings (#3825) · abaaaaff
      Max Inden authored
      * core/finality-grandpa: Improve code comments
      
      * core/finality-grandpa: Rename VoteOrPrecommit to PrevoteOrPrecommit
      
      According to the Grandpa paper [1]:
      
      > A vote is a block hash, together with some metadata such as round
      number and the type of vote, such as prevote or precommit, all signed
      with a voter’s private key.
      
      To reduce confusion this patch makes the code consistent with the
      research paper.
      
      [1] https://github.com/w3f/consensus/blob/master/pdf/grandpa.pdf
      
      * core/finality-grandpa: Add comment for NetworkStream concept
      
      * core/finality-grandpa: Improve round_communication doc comment
      
      * core/finality-grandpa: Rename PrevoteOrPrecommit to Vote
      
      * core/finality-grandpa: Represent NetworkStream state machine as enum
      
      * core/finality-grandpa: Improve KeepTopics comment
      abaaaaff
    • h4x3rotab's avatar
      Fix typo (#3853) · 31eebdf3
      h4x3rotab authored
      In `core/client/src/client.rs`: "innacurate" -> "inaccurate"
      31eebdf3
    • cheme's avatar
      Code redundancy between ext implementation and testing. (#3830) · d9cffa0b
      cheme authored
      * fix child_storage_hash
      
      * extract common implementation for ext and testing
      
      * cleaning impl.
      
      * replace ExtBasisMut by actual Ext
      
      * remove extbasis.
      
      * Update tests to use Ext from test externalities.
      
      * use Ext constructor for getting ext from TestExternalities.
      
      * Add missing extensions from ext.
      
      * fix wasmi test
      
      * Fix merge error.
      d9cffa0b
  6. Oct 17, 2019
  7. Oct 16, 2019
  8. Oct 15, 2019
  9. Oct 14, 2019
  10. Oct 12, 2019
  11. Oct 11, 2019
    • Caio's avatar
      Fix Typo (#3805) · f60bc521
      Caio authored
      The `chain::error::FutureResult` doc is currently referring to the wrong
      structure
      f60bc521
  12. Oct 10, 2019
    • Bastian Köcher's avatar
      Add `execute_with` to `TestExternalities` (#3793) · 4dbc9265
      Bastian Köcher authored
      This function executes the given closure in a context where the test
      externalities are set. This makes the srml tests easier to write, as the
      test externalities need to be created anyway.
      4dbc9265
    • Kian Paimani's avatar
      Multi-limb arithmetic for runtime (#3743) · 21fae718
      Kian Paimani authored
      
      
      * First working version of all operations.
      
      * New and improved version of everything.
      
      * Minor cleanup.
      
      * Fix build
      
      * Finalize nignum
      
      * Some final works on refactors and tests.
      
      * fix build
      
      * Some review comments
      
      * Bench, better try into and nits
      
      * mutify the API
      
      * rename to big_uint
      
      * unmutify.
      
      * Remove resize
      
      * Apply suggestions from code review
      
      * Update core/sr-primitives/src/sr_arithmetic.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * BEtter proof
      
      * Fix panic doc.
      
      * Bump.
      21fae718
  13. Oct 09, 2019
    • Demi Obenour's avatar
      Bump dependencies (#3787) · 4da48dd9
      Demi Obenour authored
      * Update dependencies, respecting semver
      
      * Bump dependencies
      
      * Don’t patch tiny-bip39 dependency
      4da48dd9
    • Bastian Köcher's avatar
      Move `Externalities` into its own crate (#3775) · 8a39be47
      Bastian Köcher authored
      * Move `Externalities` into `substrate-externalities`
      
      - `Externalities` now support generic extensions
      - Split of `primtives-storage` for storage primitive types
      
      * Move the externalities scoping into `substrate-externalities`
      
      * Fix compilation
      
      * Review feedback
      
      * Adds macro for declaring extensions
      
      * Fix benchmarks
      
      * Introduce `ExtensionStore` trait
      
      * Last review comments
      
      * Implement it for `ExtensionStore`
      8a39be47
  14. Oct 08, 2019