1. Nov 16, 2018
    • Bastian Köcher's avatar
      Try to get grandpa tests compiling again (#1121) · baf7cf63
      Bastian Köcher authored
      * Revert "start to refactor block import wrapper a bit"
      
      This reverts commit b919de49e1a82422a0870b66100832d531174771.
      
      * Refactor grandpa stuff to get tests almost compiling
      
      * Fixes after rebase
      
      * Fixes merge compile errors
      baf7cf63
  2. Nov 15, 2018
  3. Nov 14, 2018
    • Svyatoslav Nikolsky's avatar
      Fetch changes trie roots + CHT-based proof for these roots (#896) · 79d461ad
      Svyatoslav Nikolsky authored
      * build CHT for changes tries roots
      
      * collect chnages tries roots proof in key_changes_proof
      
      * flush check_changes_proof
      
      * fixed compilation
      
      * LightDataChecker now has a ref to the blockchain
      
      * continue passing proofs
      
      * new light db tests
      
      * more CHT tests
      
      * more tests for key changes proof when headers are missing
      
      * lost files
      79d461ad
  4. Nov 13, 2018
    • Bastian Köcher's avatar
      Implement runtime api client side directly in the runtime (#1094) · 0cc0a793
      Bastian Köcher authored
      * Move `initialise_block` into `Core` trait as it is crucial calling the API functions
      
      * Switch to first version of new runtime API implementation
      
      * Fixes bug in tests
      
      * Reenable asserts
      
      * Directly use the `TestAPI` in the tests
      
      * Start improving the api traits
      
      :100644 100644 898aadc7 49217199 M	Cargo.lock
      :100644 100644 61570436 465ed664 M	core/client/src/backend.rs
      :100644 100644 5d0c886b 64d710fd M	core/client/src/block_builder.rs
      :100644 100644 c447855e 5ecbe474 M	core/client/src/client.rs
      :100644 100644 139cef13 f90dbf3d M	core/client/src/error.rs
      :100644 100644 2800c503 3298e66a M	core/client/src/runtime_api.rs
      :100644 100644 affa1c5c 809b08bc M	core/primitives/src/lib.rs
      :100644 100644 2877dfa9 d5547413 M	core/sr-api/Cargo.toml
      :100644 100644 9a49784d 6a625a03 M	core/sr-api/src/lib.rs
      :100644 100644 7c28e1c7 a1a444a9 M	core/sr-primitives/src/traits.rs
      :100644 100644 2e113ab6 dcc01a6d M	srml/metadata/Cargo.toml
      :100644 100644 ea722a70 0809531a M	srml/metadata/src/lib.rs
      
      * Refactoring
      
      * Move `sr-api` into client and more refactoring
      
      * Fixes tests
      
      * Some documentation and cleanup
      
      * Fixes compilation after rebase
      
      * More refactoring and more documentation
      
      * Makes `substrate-client` compilable on `wasm`
      
      On `wasm` it basically just exports the runtime api stuff.
      
      * Fixes grumbles
      
      * Updates wasm files after rebasing the master
      
      * Remove TODO comment
      
      * Remove whitespaces
      
      * Fixes after rebasing master
      
      * Another rebase, another fix commit
      0cc0a793
    • Svyatoslav Nikolsky's avatar
      Changes tries: support forks (#950) · e5439021
      Svyatoslav Nikolsky authored
      * forks support in changes trie storage
      
      * moved convert_hash to primitives
      
      * optimize ChangesTrieRootsStorage::root when anchor is canonicalized
      e5439021
  5. Nov 12, 2018
    • Luke Schoen's avatar
      docs: Extends #999. Remove disused package readmes. Rename to sr-metadata. Fix... · 470be19a
      Luke Schoen authored
      docs: Extends #999. Remove disused package readmes. Rename to sr-metadata. Fix Readme Rustdoc names (#1016)
      
      * docs: Remove safe-mix since is no longer local dependency
      
      * docs: Fix existing packages link. Still only includes Substrate Core
      
      * docs: Remove empty package Readmes. Remove old docs links. Rename to Readme
      
      * docs: Remove link to old docs
      
      * misc: Merge latest from master. Renaem to sr-metadata. Fix list of RustDoc package names
      
      * Rename substrate-metadata to sr-metadata, since it is in the "srml" subdirectory
      
      * Change example to use package name that opens all packages in RustDocs
      
      * Fix list of packages names that are available to open in RustDocs
      
      * fix typo
      
      * fix ordering of CLI options and add missing backslash
      470be19a
    • Sergey Pepyakin's avatar
      srml-contract: Extract schedule (#1044) · f64ebee2
      Sergey Pepyakin authored
      * Rename Config → Schedule.
      
      * Fetch and pass config.
      
      * Integrate config everywhere.
      
      * <<<E as Ext>::T as Trait> → <<E::T as Trait>
      
      * Update roots
      
      * Cache existential_deposit
      
      * Update COMPLEXITY.md
      
      * Update roots.
      f64ebee2
    • Gav Wood's avatar
      Remove unneeded Serde requirements (#1076) · d45de4b3
      Gav Wood authored
      * Remove superfluous serde requirements.
      
      * Try to ensure hash is serde
      
      * Fixups
      
      * Building again
      
      * Attempt to reenable Block (doesn't build)
      
      * Fixes compilation for node cli
      
      * Fixes test compilation
      
      * Fix wasm
      
      * Fix tests
      
      * Remove unneeded changes
      
      * Fix up comments
      
      * Reenable some code
      
      * Compile error when origin misused.
      
      * Remove unnecessary includes of `serde_derive`
      
      * Cleanups
      d45de4b3
  6. Nov 09, 2018
  7. Nov 06, 2018
    • Hero Bird's avatar
      Update fixed-hash & uint utilities (#1078) · 2a889b15
      Hero Bird authored
      * [core/primitives] Update crunchy 0.1 => 0.2
      
      * [core/primitives] Update fixed-hash 0.2 => 0.3.0-beta
      
      * [core/primitives] Update `uint` 0.4 => 0.5.0-beta
      
      * [core/state-machine] Fix errors emerged by fixed-hash update
      
      * [core/state-db] Fix errors that emerged from fixed-hash update
      
      * [core/sr-io] Fix errors that emerged from the fixed-hash update
      
      * [core/trie] Fix errors emerged from fixed-hash updates
      
      * [core/trie] Make use of new Hash::as_fixed_bytes_mut method in tests
      
      * [core/sr-primitives] Fix errors emerged from updating fixed-hash
      
      * [core/executor] Fix errors that emerged from fixed-hash update
      
      * [core/test-runtime] Fix errors that emerged from updating fixed-hash
      
      * [core/test-runtime] Fix an error that emerged from fixed-hash update
      
      * [core/transaction-pool] Fix errors that emerged from updating fixed-hash
      
      * Add From<u64> impl for hash types defined in core/primitives
      
      * [core/client/db] Fix errors that emerged from fixed-hash update
      
      * [core/{client/network/rpc}]: Fix errors emerged by fixed-hash update
      
      * [node/{cli/executor/runtime}]: Fix errors emerged by updating fixed-hash
      
      * [core/network]: Fix bug in parsing constant str
      
      * Update Cargo.lock
      
      - Add crunchy 0.2.1
      - fixed-hash 0.2.2 => 0.3.0-beta.3
      - Add static-assertions 0.2.5
      - uint 0.4.1 => 0.5.0-beta.1
      
      * [core/primitives]: Add fixed-hash/rustc-hex feature for FromStr impl
      
      * [core/primitives] No longer provide From<u64> impl for hash types if byteorder support is not enabled
      
      * [core/primitives] Revert to using From impl again in primitives tests
      
      * [core/..] Fix some bugs that emerged by recent fixed-hash updates
      
      * Update a bunch of Cargo.lock files
      
      * [core/state-db] Re-add whitespace between attr and extern crate/mod
      
      * [core/primitives] Fix bug in From<u64> impl for hash types using the wrong feature guard
      2a889b15
  8. Nov 05, 2018
  9. Nov 02, 2018
  10. Oct 31, 2018
  11. Oct 27, 2018
    • Benjamin Kampmann's avatar
      Consensus Engines Implementation: Aura (#911) · 101d673c
      Benjamin Kampmann authored
      * Generalize BlockImport
      
       - move ImportBlock, BlockOrigin, ImportResult into shared sr-primitives
       - let Consensus provide  and  traits again
       - update consensus traits to latest development
       - implement traits on client::Client, test_client::TestClient
       - update RHD to use the new import_block API
      
      * Move ImportBlock into consensus-common
      * Send import notification in aura tests
      * Integrating aura into service
      * Make Signatures more generic
      * Aura Block Production with the given key
      * run aura on the thread pool
      * start at exact step start in aura
      * Add needed wasm blob, in leiu of better solutions.
      * Make API ids consistent with traits and bring upstream for sharing.
      * Add decrease_free_balance to Balances module
      * Encode `Metadata` once instead of two times
      * Bitops include xor
      * Upgrade key module.
      * Default pages to somewhat bigger.
      * Introduce upgrade key into node
      * Add `Created` event
      101d673c
  12. Oct 26, 2018
  13. Oct 25, 2018
  14. Oct 23, 2018
  15. Oct 20, 2018
  16. Oct 19, 2018
    • Svyatoslav Nikolsky's avatar
      Moved DigestItem impl to impl_outer_log (#932) · 2fe31ae0
      Svyatoslav Nikolsky authored
      * moved DigestItem impl to impl_outer_log
      
      * Enable backtrace collecting on the CI
      
      * internal module is not required in impl_outer_log
      
      * Revert "internal module is not required in impl_outer_log"
      
      This reverts commit 54304469.
      
      * Revert "moved DigestItem impl to impl_outer_log"
      
      This reverts commit 8872bbee.
      
      * Revert "Revert "moved DigestItem impl to impl_outer_log""
      
      This reverts commit 47afd596.
      
      * Revert "Revert "internal module is not required in impl_outer_log""
      
      This reverts commit 9ae64001.
      
      * More diagnostics
      
      * check if only 1 test fails
      
      * test is back + some "traces"
      
      * removed some traces
      
      * removed "traces"
      2fe31ae0
  17. Oct 18, 2018
    • Bastian Köcher's avatar
      Move inherent implementation into the modules (#924) · 9c9c5777
      Bastian Köcher authored
      * Adds new `ProvideInherent` trait
      
      Also implements the new trait for `srml/consensus` and `srml/timestamp`.
      
      * Adds `impl_outer_inherent!` macro
      
      * Reexport macros from `alloc`
      
      * Introduce `RuntimeString` and fix `ProvideInherent` on `no_std`
      
      * Replace `VersionString` with `RuntimeString`
      
      * Improvements for `impl_outer_inherent!`
      
      * Make `construct_runtime!` support `impl_outer_inherent!`
      
      * Fixes after rebase
      
      * Whitespace
      9c9c5777
  18. Oct 16, 2018
    • Gav Wood's avatar
      Compact format for block number, nonce, balance (#910) · 7a6353eb
      Gav Wood authored
      * Try to make everything compact
      
      * Make `Clone` work
      
      * Fix
      
      * Move contracts and balances over to compact encoding
      
      * Session and timestamp are compact
      
      * Sataking uses compact numbers
      
      * Treasury now compact
      
      * Compact Democracy
      
      * Council is compact
      
      * Fix
      7a6353eb
    • Bastian Köcher's avatar
      Adds `check_inherents` function to the `BlockerBuilder` API (#912) · e1c03f78
      Bastian Köcher authored
      * Adds new `check_inherents` function to the `BlockBuilder` API
      
      * Switch to `check_inherents` in `node-consensus`
      
      * Remove `CheckedBlock`, because it is not required anymore
      
      * Fixes after rebase
      
      * Fixes compilation on stable
      e1c03f78
    • Benjamin Kampmann's avatar
      Generalize the Consensus Infrastructure (#883) · 14ff8f9e
      Benjamin Kampmann authored
      * Split out Consensus
      * Supply ImportQueue through network-service
        - simplify ImportQueue.import_blocks
        - remove Deadlock on import_block
        - Adding Verifier-Trait
        - Implement import_queue provisioning in service; allow cli to import
      * Allow to actually customize import queue
      * Consensus Gossip: Cache Message hash per Topic
      14ff8f9e
  19. Oct 09, 2018
    • Bastian Köcher's avatar
      Runtime API clean up (#892) · 4fc8c98b
      Bastian Köcher authored
      * Rename `NewTxQueue` to `TaggedTransactionQueue`
      
      * Remove `BlockBuilder` API and support adding documentation to the API functions
      
      * Adds new `BlockBuilder` API
      
      * Fixes compilation with new `BlockBuilder` API
      
      * Some more cleanup
      
      * Cargo.lock update
      
      * Try to fix on stable
      4fc8c98b
    • Bastian Köcher's avatar
      Refactor the runtime API to use traits. (#878) · 3f467478
      Bastian Köcher authored
      * Add missing `As` imports.
      
      * Adds new API traits that will be used by the client and runtime
      
      * Switch consensus to new API's
      
      * Switches transaction-pool to new API's
      
      * Move runtime api stuff into its own crate
      
      * Adds `impl_apis!` macro for implementing the new API traits
      
      * Make `metadata` return directly a blob
      
      * Runtime replace `impl_stubs!` with `impl_apis!`
      
      * Switches to none feature based approach for declaring the different API traits
      
      * Fixes compilation error
      
      * Fixes errors
      
      * Make the `decl_apis!` trait usable from the outside
      
      * Make the `test-client` use the new API traits
      
      * Remove last `impl_stubs!` bits and move some of them into wasm executor for tests
      
      * A little bit more documentation
      3f467478
  20. Oct 05, 2018
  21. Sep 30, 2018
  22. Sep 28, 2018
    • Arkadiy Paronyan's avatar
      Integration tests (#805) · e722f09b
      Arkadiy Paronyan authored
      * Started substrate tests
      
      * Sync test
      
      * Test updates
      
      * Improved tests
      
      * Use on-chain block delay
      
      * Parallel test execution
      
      * Otimized tests
      
      * Logging
      
      * Fixed racing test
      
      * Fixed compilation
      
      * Fixed timestamp test
      
      * Removed rlp dependency
      
      * Minor fixes
      
      * Fixed tests
      
      * Removed best_block_id and resolved fdlimit issue
      
      * Whitespace
      
      * Use keyring
      
      * Style
      
      * Added API execution setting
      
      * Removed stale import
      e722f09b
  23. Sep 27, 2018
  24. Sep 25, 2018
  25. Sep 21, 2018
  26. Sep 20, 2018
    • Gav Wood's avatar
      Transaction eras (#758) · 0b72f33d
      Gav Wood authored
      * Initial groundwork
      
      * A mess.
      
      * Integrate
      
      * Fix tests
      
      * Unit tests
      
      * Tests for unchecked_extrisnic
      
      * fix tab
      
      * Improve binary format.
      
      * fix tests
      
      * Rename extrinsic-pool -> transaction-pool
      
      Closes #770
      
      * Implement unimplemented.
      
      * typo
      0b72f33d
    • Bastian Köcher's avatar
      Replace JSON metadata with custom metadata structures (#766) · 64fa981d
      Bastian Köcher authored
      * Move module metadata from json string to custom metadata
      
      * Revisit the metadata structures
      
      1. Move the structures into the metadata crate.
      2. Switch to using Cow/MaybeOwnedArray to support Encode/Decode
      
      * Adapt to new metadata structures
      
      * Convert event json metadata to new metadata structures
      
      * Convert storage json metadata to new metadata structures
      
      * Convert runtime metadata from json to new metadata structs
      
      * Implements new metadata structures in client and runtime
      
      * Fixes errors on `no_std`
      
      * Fixes errors after rebasing master
      
      * Do not use `Cow` anymore in metadata
      
      Also replace `String` with our own type definition `StringBuf`.
      This fixes compilation on `no_std`.
      
      * Wrap `RuntimeMetadata` in `RuntimeMetadataVersioned` to support versioning
      
      * Move metadata into `srml` and make core unaware of the implementation
      64fa981d
  27. Sep 19, 2018